Skip to content

Commit 5c6ea8b

Browse files
author
g_j_m
committedNov 30, 2006
Tweak for previous commit. After stopping measuring with a right mouse
click, a left mouse click not starts a new measuring git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6154 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/gui/qgsmeasure.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ void QgsMeasure::canvasPressEvent(QMouseEvent * e)
304304
{
305305
if (e->button() == Qt::LeftButton)
306306
{
307+
if (mRightMouseClicked)
308+
restart();
309+
307310
QgsPoint idPoint = mCanvas->getCoordinateTransform()->toMapCoordinates(e->x(), e->y());
308311
mousePress(idPoint);
309312
}

0 commit comments

Comments
 (0)
Please sign in to comment.