aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-01-07 21:48:17 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 12:29:59 -0800
commit2b311b1c2cb440deb9434a19b5e2b1ce37c8554c (patch)
treea1d0ac60386f81c687932f166951118a2aac6e42
parent1c06252c00e44a4f877da4441761932a28a6c3b8 (diff)
downloadsubsurface-2b311b1c2cb440deb9434a19b5e2b1ce37c8554c.tar.gz
profile: don't show instantMeanDepth for printMode
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 226580a48..a3e08d816 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -610,7 +610,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
instantMeanDepth->vAxis = profileYAxis;
instantMeanDepth->hAxis = timeAxis;
- instantMeanDepth->setVisible(prefs.show_average_depth);
+ instantMeanDepth->setVisible(prefs.show_average_depth && !printMode);
instantMeanDepth->setModel(dataModel);
dataModel->emitDataChanged();