Skip to content
Permalink
Browse files
Merge pull request #43438 from rouault/annotation_left_button_only
[App] Create a map annotation only on left button press event
  • Loading branch information
rouault committed May 29, 2021
2 parents 32af68f + e5b0529 commit 8fc905be084f8f14b10291ab536f271ff6a84b6f
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 8fc905b

Please sign in to comment.