mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Hide ruler when in ADD or PLAN mode.
This ruler shouldn't appear in ADD or PLAN mode, it's a bug and may crash things. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
64ef4c2e8d
commit
ee4f9494f2
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
|
||||
// reset some item visibility on printMode changes
|
||||
toolTipItem->setVisible(!printMode);
|
||||
rulerItem->setVisible(prefs.rulergraph && !printMode);
|
||||
rulerItem->setVisible(prefs.rulergraph && !printMode && currentState != PLAN && currentState != ADD);
|
||||
|
||||
if (currentState == EMPTY)
|
||||
setProfileState();
|
||||
|
|
Loading…
Add table
Reference in a new issue