Skip to content

Commit 5114d60

Browse files
committed
[layouts] Fix mouse event handling on rulers
1 parent a800a37 commit 5114d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/layout/qgslayoutruler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ void QgsLayoutRuler::mousePressEvent( QMouseEvent *event )
715715

716716
void QgsLayoutRuler::mouseReleaseEvent( QMouseEvent *event )
717717
{
718-
if ( mView->currentLayout() )
718+
if ( !mView->currentLayout() )
719719
return;
720720

721721
if ( event->button() == Qt::LeftButton )

0 commit comments

Comments
 (0)