[PATCH] profile: don't show instantMeanDepth for printMode

Lubomir I. Ivanov neolit123 at gmail.com
Wed Jan 7 11:48:17 PST 2015


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 qt-ui/profile/profilewidget2.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 226580a..a3e08d8 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();
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list