Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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@6154 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Nov 30, 2006
1 parent 1b0ed3c commit 7f236f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgsmeasure.cpp
Expand Up @@ -304,6 +304,9 @@ void QgsMeasure::canvasPressEvent(QMouseEvent * e)
{
if (e->button() == Qt::LeftButton)
{
if (mRightMouseClicked)
restart();

QgsPoint idPoint = mCanvas->getCoordinateTransform()->toMapCoordinates(e->x(), e->y());
mousePress(idPoint);
}
Expand Down

0 comments on commit 7f236f7

Please sign in to comment.