Skip to content
Permalink
Browse files
[App] Create a map annotation only on left button press event
  • Loading branch information
rouault committed May 28, 2021
1 parent 3b612b0 commit e5b0529b91445c70d0584e2d36195012849481ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmaptoolannotation.cpp
@@ -80,7 +80,7 @@ void QgsMapToolAnnotation::canvasReleaseEvent( QgsMapMouseEvent *e )

void QgsMapToolAnnotation::canvasPressEvent( QgsMapMouseEvent *e )
{
if ( !mCanvas )
if ( !mCanvas || !( e->buttons() & Qt::LeftButton ) )
{
return;
}

0 comments on commit e5b0529

Please sign in to comment.