From 79f24fc2a7a7d9e26572b08c0848c2716ec048c1 Mon Sep 17 00:00:00 2001 From: William Johnson Date: Fri, 12 Jul 2024 11:59:41 -0700 Subject: [PATCH] Fix to mult. instead of divide mm units. (not that it matters, `PhysicalUnits::mm == 1`. --- src/ShowRiidInstrumentsAna.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShowRiidInstrumentsAna.cpp b/src/ShowRiidInstrumentsAna.cpp index 2e53103e..2bb88987 100644 --- a/src/ShowRiidInstrumentsAna.cpp +++ b/src/ShowRiidInstrumentsAna.cpp @@ -292,7 +292,7 @@ class AnaResultDisplay : public WContainerWidget + ""; if( res.distance_ > 0.0 ) result += "" + WString::tr("Distance").toUTF8() - + "" + PhysicalUnits::printToBestLengthUnits(res.distance_/PhysicalUnits::mm,4) + ""; + + "" + PhysicalUnits::printToBestLengthUnits(res.distance_ * PhysicalUnits::mm,4) + ""; if( res.activity_ > 0.0 ) { const bool useBq = InterSpecUser::preferenceValue( "DisplayBecquerel", InterSpec::instance() );