mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Merge pull request #1188 from 3nids/addpointleftclick
only add point with left click
This commit is contained in:
commit
6364f1399c
@ -95,6 +95,9 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
|
|||||||
// POINT CAPTURING
|
// POINT CAPTURING
|
||||||
if ( mode() == CapturePoint )
|
if ( mode() == CapturePoint )
|
||||||
{
|
{
|
||||||
|
if ( e->button() != Qt::LeftButton )
|
||||||
|
return;
|
||||||
|
|
||||||
//check we only use this tool for point/multipoint layers
|
//check we only use this tool for point/multipoint layers
|
||||||
if ( vlayer->geometryType() != QGis::Point )
|
if ( vlayer->geometryType() != QGis::Point )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user