Skip to content

Commit d805cd9

Browse files
author
rblazek
committed
fixed ticket 59 (zoom tool recieving right click)
git-svn-id: http://svn.osgeo.org/qgis/trunk@5675 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7fbe38d commit d805cd9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/gui/qgsmapcanvas.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,6 @@ void QgsMapCanvas::contentsMouseReleaseEvent(QMouseEvent * e)
662662
// call handler of current map tool
663663
if (mMapTool)
664664
{
665-
mMapTool->canvasReleaseEvent(e);
666-
667665
// right button was pressed in zoom tool? return to previous non zoom tool
668666
if (e->button() == Qt::RightButton && mMapTool->isZoomTool())
669667
{
@@ -680,6 +678,7 @@ void QgsMapCanvas::contentsMouseReleaseEvent(QMouseEvent * e)
680678
}
681679
return;
682680
}
681+
mMapTool->canvasReleaseEvent(e);
683682
}
684683

685684

0 commit comments

Comments
 (0)