Skip to content

Commit

Permalink
Fix orphan snap lines sometimes show
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 6, 2017
1 parent 1e7149e commit e172356
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/layout/qgslayoutview.cpp
Expand Up @@ -115,7 +115,11 @@ void QgsLayoutView::setTool( QgsLayoutViewTool *tool )
mTool->deactivate();
}

mSnapMarker->setVisible( false );
mSnapMarker->hide();
if ( mHorizontalSnapLine )
mHorizontalSnapLine->hide();
if ( mVerticalSnapLine )
mVerticalSnapLine->hide();

// activate new tool before setting it - gives tools a chance
// to respond to whatever the current tool is
Expand Down

0 comments on commit e172356

Please sign in to comment.