Skip to content

Commit e172356

Browse files
committedOct 6, 2017
Fix orphan snap lines sometimes show
1 parent 1e7149e commit e172356

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/gui/layout/qgslayoutview.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ void QgsLayoutView::setTool( QgsLayoutViewTool *tool )
115115
mTool->deactivate();
116116
}
117117

118-
mSnapMarker->setVisible( false );
118+
mSnapMarker->hide();
119+
if ( mHorizontalSnapLine )
120+
mHorizontalSnapLine->hide();
121+
if ( mVerticalSnapLine )
122+
mVerticalSnapLine->hide();
119123

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

0 commit comments

Comments
 (0)
Please sign in to comment.