aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@planet.nl>2014-03-26 09:09:38 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-27 10:58:22 -0700
commit486db77ac87574e1fc3d081f0ad3c2e56b0b92eb (patch)
treeb179ec91dd6e593904ee6fcd6db5f544b45b83bd /qt-ui
parent198199adaea29963cac81325d45e13310091ff35 (diff)
downloadsubsurface-486db77ac87574e1fc3d081f0ad3c2e56b0b92eb.tar.gz
Repaint ruler when enable/disabling it
Repaint ruler when enable/disabling it. Straightforward replot() added. Fixes #479 Signed-off-by: Jan Mulder <jlmulder@planet.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index cba977b5a..604f307c0 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -476,6 +476,7 @@ void ProfileWidget2::settingsChanged()
rulerItem->setVisible(rulerVisible);
rulerItem->destNode()->setVisible(rulerVisible);
rulerItem->sourceNode()->setVisible(rulerVisible);
+ replot();
} else {
rulerItem->setVisible(false);
rulerItem->destNode()->setVisible(false);