From b673355245f54a3dade53d8e0abc610336cd4b14 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 21 Oct 2021 22:17:37 +0200 Subject: [PATCH] profile: don't check for printMode in ProfileWidget2 This widget is no longer used for printing, therefore these tests are obsolete. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index c848d3a7f..51988c765 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -208,10 +208,7 @@ void ProfileWidget2::plotDive(const struct dive *dIn, int dcIn, bool instant) profileScene->plotDive(d, dc, model, inPlanner, instant, shouldCalculateMax, zoom, zoomedPosition); #ifndef SUBSURFACE_MOBILE - // reset some item visibility on printMode changes - toolTipItem->setVisible(!profileScene->printMode); - rulerItem->setVisible(prefs.rulergraph && !profileScene->printMode && currentState != PLAN && currentState != EDIT); - + rulerItem->setVisible(prefs.rulergraph && currentState != PLAN && currentState != EDIT); toolTipItem->setPlotInfo(profileScene->plotInfo); rulerItem->setPlotInfo(d, profileScene->plotInfo);