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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-10-21 22:17:37 +02:00 committed by Dirk Hohndel
parent 685b7cb2a8
commit b673355245

View file

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