From 6c67f90858aaccddc848e94ea161e284456e94d3 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 15 Feb 2014 20:48:58 -0200 Subject: If the depth is zero, dont show it. The first depth label of its axis is always zero, do not show it. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/divecartesianaxis.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp index be83dcc7a..cc8901dc5 100644 --- a/qt-ui/profile/divecartesianaxis.cpp +++ b/qt-ui/profile/divecartesianaxis.cpp @@ -275,6 +275,8 @@ void DiveCartesianAxis::setColor(const QColor& color) QString DepthAxis::textForValue(double value) { + if (value == 0) + return QString(); return get_depth_string(value, false, false); } -- cgit v1.2.3-70-g09d2