mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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
This commit is contained in:
parent
1b0ed3ca1c
commit
7f236f7c2f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user