Skip to content

Commit 8d5c9ad

Browse files
committedJun 24, 2015
Fix zoom tool doesn't work from bottom right to top left (fix #12614)
Cherry-picked from bfa9f1c
1 parent f659554 commit 8d5c9ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/gui/qgsmaptoolzoom.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ void QgsMapToolZoom::canvasReleaseEvent( QMouseEvent * e )
103103
mZoomRect.setRight( e->pos().x() );
104104
mZoomRect.setBottom( e->pos().y() );
105105

106+
//account for bottom right -> top left dragging
107+
mZoomRect = mZoomRect.normalized();
108+
106109
// set center and zoom
107110
const QSize& zoomRectSize = mZoomRect.size();
108111
const QgsMapSettings& mapSettings = mCanvas->mapSettings();

0 commit comments

Comments
 (0)
Please sign in to comment.