mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
// reset some item visibility on printMode changes
|
||||||
toolTipItem->setVisible(!printMode);
|
toolTipItem->setVisible(!printMode);
|
||||||
rulerItem->setVisible(prefs.rulergraph && !printMode);
|
rulerItem->setVisible(prefs.rulergraph && !printMode && currentState != PLAN && currentState != ADD);
|
||||||
|
|
||||||
if (currentState == EMPTY)
|
if (currentState == EMPTY)
|
||||||
setProfileState();
|
setProfileState();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue