summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-07 13:34:53 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-07 13:34:53 +0900
commit3cca9eaf94963a1c028637c7a275bae5f8a863da (patch)
tree4bff8d25e9c3c46c95dffca1f363fd499cb41235 /qt-ui
parentc774bab6e62a112dd186142a7a55a4776388eaba (diff)
parent840f943acdd7e4b287f3ab74f2d2b0197910575a (diff)
downloadsubsurface-3cca9eaf94963a1c028637c7a275bae5f8a863da.tar.gz
Merge branch '129_moveOverlay' of https://github.com/tcanabrava/subsurface
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profilegraphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 375d8b6d3..cfd155132 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -149,7 +149,7 @@ void ProfileGraphicsView::wheelEvent(QWheelEvent* event)
if (event->delta() > 0 && zoomLevel <= 10) {
scale(scaleFactor, scaleFactor);
zoomLevel++;
- } else if (zoomLevel >= 0) {
+ } else if (zoomLevel > 0) {
// Zooming out
scale(1.0 / scaleFactor, 1.0 / scaleFactor);
zoomLevel--;
@@ -173,7 +173,7 @@ void ProfileGraphicsView::mouseMoveEvent(QMouseEvent* event)
toolTip->setPos(mapToScene(toolTipPos).x(), mapToScene(toolTipPos).y());
- if (zoomLevel < 0)
+ if (zoomLevel == 0)
QGraphicsView::mouseMoveEvent(event);
}