diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-02-15 20:48:58 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-15 17:15:03 -0800 |
commit | 6c67f90858aaccddc848e94ea161e284456e94d3 (patch) | |
tree | 537dcafa0cd139090d58ce88e23cd22a2fa2d0cc /qt-ui/profile | |
parent | 021d799ff9346e602b8a19c296610a9bda98d970 (diff) | |
download | subsurface-6c67f90858aaccddc848e94ea161e284456e94d3.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/divecartesianaxis.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |