Skip to content
Permalink
Browse files

Fix zoom tool doesn't work from bottom right to top left (fix #12614)

  • Loading branch information
nyalldawson committed May 28, 2015
1 parent eee1ce1 commit bfa9f1cf6a712709fd89dd23e314211cc13a240a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgsmaptoolzoom.cpp
@@ -103,6 +103,9 @@ void QgsMapToolZoom::canvasReleaseEvent( QMouseEvent * e )
mZoomRect.setRight( e->pos().x() );
mZoomRect.setBottom( e->pos().y() );

//account for bottom right -> top left dragging
mZoomRect = mZoomRect.normalized();

// set center and zoom
const QSize& zoomRectSize = mZoomRect.size();
const QgsMapSettings& mapSettings = mCanvas->mapSettings();

0 comments on commit bfa9f1c

Please sign in to comment.
You can’t perform that action at this time.