aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-22 14:37:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-22 14:37:21 -0700
commitc47594417ae1efc39d6d1da4e7dfb936dafd2863 (patch)
tree14282d442568821a3425bda84bf26e038c42d317
parent4a04fc2a1bf9fc424645cda9257e24b43bbb1b71 (diff)
downloadsubsurface-c47594417ae1efc39d6d1da4e7dfb936dafd2863.tar.gz
We should never show decimals on depth in feet
That's 3cm resolution - just unrealistic Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index a7362d5f0..54ed76317 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -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") : "");
}
}