Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash on style dock apply with no layer
  • Loading branch information
NathanW2 committed May 22, 2016
1 parent 3ace8e6 commit 2aa002d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsmapstylingwidget.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 2aa002d

Please sign in to comment.