Merge pull request #1188 from 3nids/addpointleftclick

only add point with left click
This commit is contained in:
Martin Dobias 2014-02-18 17:43:13 +07:00
commit 6364f1399c

View File

@ -95,6 +95,9 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
// POINT CAPTURING
if ( mode() == CapturePoint )
{
if ( e->button() != Qt::LeftButton )
return;
//check we only use this tool for point/multipoint layers
if ( vlayer->geometryType() != QGis::Point )
{