From c47594417ae1efc39d6d1da4e7dfb936dafd2863 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 22 Aug 2014 14:37:21 -0700 Subject: We should never show decimals on depth in feet That's 3cm resolution - just unrealistic Signed-off-by: Dirk Hohndel --- qt-gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-gui.cpp') 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") : ""); } } -- cgit v1.2.3-70-g09d2