Skip to content

Commit

Permalink
[styledock] Improve fix for crash with non-spatial layers
Browse files Browse the repository at this point in the history
Follow up 58dbe56 (which fixes #15179)
  • Loading branch information
wonder-sk committed Jun 30, 2016
1 parent 1956467 commit 9a28b51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgslayerstylingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ void QgsLayerStylingWidget::redo()

void QgsLayerStylingWidget::updateCurrentWidgetLayer()
{
mBlockAutoApply = true;

if ( !mCurrentLayer )
return;
return; // non-spatial are ignored in setLayer()

mBlockAutoApply = true;

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

Expand Down

1 comment on commit 9a28b51

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.