Skip to content

Commit 9a28b51

Browse files
committedJun 30, 2016
[styledock] Improve fix for crash with non-spatial layers
Follow up 58dbe56 (which fixes #15179)
1 parent 1956467 commit 9a28b51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/app/qgslayerstylingwidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ void QgsLayerStylingWidget::redo()
280280

281281
void QgsLayerStylingWidget::updateCurrentWidgetLayer()
282282
{
283-
mBlockAutoApply = true;
284-
285283
if ( !mCurrentLayer )
286-
return;
284+
return; // non-spatial are ignored in setLayer()
285+
286+
mBlockAutoApply = true;
287287

288288
mUndoWidget->setUndoStack( mCurrentLayer->undoStackStyles() );
289289

1 commit comments

Comments
 (1)

NathanW2 commented on Jun 30, 2016

@NathanW2
Member

Thanks

Please sign in to comment.