Skip to content
Permalink
Browse files

Avoid Qt warning

  • Loading branch information
nyalldawson committed Dec 5, 2017
1 parent 5828f5d commit ecfacdf2fc6992252f261354c85b0b8d8baaafbc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/layout/qgslayoutviewtoolselect.cpp
@@ -287,7 +287,8 @@ QgsLayoutMouseHandles *QgsLayoutViewToolSelect::mouseHandles()
void QgsLayoutViewToolSelect::setLayout( QgsLayout *layout )
{
// existing handles are owned by previous layout
mMouseHandles->deleteLater();
if ( mMouseHandles )
mMouseHandles->deleteLater();

//add mouse selection handles to layout, and initially hide
mMouseHandles = new QgsLayoutMouseHandles( layout, view() );

0 comments on commit ecfacdf

Please sign in to comment.
You can’t perform that action at this time.