Skip to content
Permalink
Browse files

Fix crash on style dock apply with no layer

  • Loading branch information
NathanW2 committed May 22, 2016
1 parent 3ace8e6 commit 2aa002d98639ea3e4dce22432c02536809a14258
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgsmapstylingwidget.cpp
@@ -97,6 +97,9 @@ void QgsMapStylingWidget::setLayer( QgsMapLayer *layer )
void QgsMapStylingWidget::apply()
{
QString undoName = "Style Change";
if ( !mCurrentLayer )
return;

if ( mCurrentLayer->type() == QgsMapLayer::VectorLayer )
{
QWidget* current = mWidgetArea->widget();

0 comments on commit 2aa002d

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