mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
We should never show decimals on depth in feet
That's 3cm resolution - just unrealistic Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4a04fc2a1b
commit
c47594417a
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ QString get_depth_string(int mm, bool showunit, bool showdecimal)
|
|||
return QString("%1%2").arg(meters, 0, 'f', (showdecimal && meters < 20.0) ? 1 : 0).arg(showunit ? translate("gettextFromC", "m") : "");
|
||||
} else {
|
||||
double feet = mm_to_feet(mm);
|
||||
return QString("%1%2").arg(feet, 0, 'f', showdecimal ? 1 : 0).arg(showunit ? translate("gettextFromC", "ft") : "");
|
||||
return QString("%1%2").arg(feet, 0, 'f', 0).arg(showunit ? translate("gettextFromC", "ft") : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue