diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-28 16:55:55 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-28 12:29:33 -0800 |
commit | ee4f9494f282533f9e3288c511561fbe32f9df23 (patch) | |
tree | 475eda9353fbe6b5d676dc14e0986a39eedb26b7 /qt-ui/profile | |
parent | 64ef4c2e8d90240a7e08429d9fccc0e05b8d903c (diff) | |
download | subsurface-ee4f9494f282533f9e3288c511561fbe32f9df23.tar.gz |
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>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 2263cbf97..924c800e7 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -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(); |