Skip to content

Commit

Permalink
[App] Create a map annotation only on left button press event
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 28, 2021
1 parent 3b612b0 commit e5b0529
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 e5b0529

Please sign in to comment.