Skip to content

Commit

Permalink
fix guide creation behaviour if a click happened during left mouse ho…
Browse files Browse the repository at this point in the history
…lding
  • Loading branch information
speillet authored and nyalldawson committed Feb 1, 2022
1 parent 4f52108 commit 8b8f39f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/layout/qgslayoutruler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,8 @@ void QgsLayoutRuler::mouseReleaseEvent( QMouseEvent *event )
}
else if ( event->button() == Qt::RightButton )
{
QMouseEvent leftRelease( event->type(), event->localPos(), Qt::LeftButton, event->buttons(), event->modifiers() );
mouseReleaseEvent( &leftRelease );
if ( mMenu )
mMenu->popup( event->globalPos() );
}
Expand Down

0 comments on commit 8b8f39f

Please sign in to comment.