aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp2
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);
}