Skip to content

Commit

Permalink
Fix to mult. instead of divide mm units.
Browse files Browse the repository at this point in the history
(not that it matters, `PhysicalUnits::mm == 1`.
  • Loading branch information
wcjohns committed Jul 12, 2024
1 parent a0aafd2 commit 79f24fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShowRiidInstrumentsAna.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class AnaResultDisplay : public WContainerWidget
+ "</td></tr>";
if( res.distance_ > 0.0 )
result += "<tr><th>" + WString::tr("Distance").toUTF8()
+ "</th><td>" + PhysicalUnits::printToBestLengthUnits(res.distance_/PhysicalUnits::mm,4) + "</td></tr>";
+ "</th><td>" + PhysicalUnits::printToBestLengthUnits(res.distance_ * PhysicalUnits::mm,4) + "</td></tr>";
if( res.activity_ > 0.0 )
{
const bool useBq = InterSpecUser::preferenceValue<bool>( "DisplayBecquerel", InterSpec::instance() );
Expand Down

0 comments on commit 79f24fc

Please sign in to comment.