Skip to content

Commit

Permalink
Fix printing out distance in RID result dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Jul 12, 2024
1 parent 1c5b4ac commit a0aafd2
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(0.1*res.distance_) + "</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 a0aafd2

Please sign in to comment.