Skip to content

Commit

Permalink
[layouts] Fix mouse event handling on rulers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 23, 2018
1 parent a800a37 commit 5114d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/layout/qgslayoutruler.cpp
Expand Up @@ -715,7 +715,7 @@ void QgsLayoutRuler::mousePressEvent( QMouseEvent *event )

void QgsLayoutRuler::mouseReleaseEvent( QMouseEvent *event )
{
if ( mView->currentLayout() )
if ( !mView->currentLayout() )
return;

if ( event->button() == Qt::LeftButton )
Expand Down

0 comments on commit 5114d60

Please sign in to comment.