profile: don't show instantMeanDepth for printMode

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-01-07 21:48:17 +02:00 committed by Dirk Hohndel
parent 1c06252c00
commit 2b311b1c2c

View file

@ -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();