diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-07 13:34:53 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-07 13:34:53 +0900 |
commit | 3cca9eaf94963a1c028637c7a275bae5f8a863da (patch) | |
tree | 4bff8d25e9c3c46c95dffca1f363fd499cb41235 /qt-ui | |
parent | c774bab6e62a112dd186142a7a55a4776388eaba (diff) | |
parent | 840f943acdd7e4b287f3ab74f2d2b0197910575a (diff) | |
download | subsurface-3cca9eaf94963a1c028637c7a275bae5f8a863da.tar.gz |
Merge branch '129_moveOverlay' of https://github.com/tcanabrava/subsurface
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 4 |
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); } |