mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
685b7cb2a8
commit
b673355245
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue