summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index c1bdccd79..cc1b7eca3 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -454,10 +454,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
heartBeatAxis->setMinimum(pInfo.minhr);
heartBeatAxis->setMaximum(pInfo.maxhr);
heartBeatAxis->updateTicks(HR_AXIS); // this shows the ticks
- heartBeatAxis->setVisible(true);
- } else {
- heartBeatAxis->setVisible(false);
}
+ heartBeatAxis->setVisible(prefs.hrgraph && pInfo.maxhr);
timeAxis->setMaximum(maxtime);
int i, incr;