Skip to content
Permalink
Browse files

[styledock] Improve fix for crash with non-spatial layers

Follow up 58dbe56 (which fixes #15179)
  • Loading branch information
wonder-sk committed Jun 30, 2016
1 parent 1956467 commit 9a28b51e9a624fcbac0bd6c0f98ddd01876f0c1f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgslayerstylingwidget.cpp
@@ -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() );

1 comment on commit 9a28b51

@NathanW2

This comment has been minimized.

Copy link
Member

@NathanW2 NathanW2 commented on 9a28b51 Jun 30, 2016

Thanks

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