Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 8fc905b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolannotation.cpp
Expand Up @@ -80,7 +80,7 @@ void QgsMapToolAnnotation::canvasReleaseEvent( QgsMapMouseEvent *e )

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

0 comments on commit 8fc905b

Please sign in to comment.