Skip to content

Commit

Permalink
[fix #13503] avoid crash when switch between style widgets and render…
Browse files Browse the repository at this point in the history
…er cannot be applied to layer
  • Loading branch information
slarosa authored and nyalldawson committed Oct 7, 2015
1 parent 2c39a5b commit 2702cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/symbology-ng/qgsrendererv2propertiesdialog.cpp
Expand Up @@ -201,7 +201,7 @@ void QgsRendererV2PropertiesDialog::rendererChanged()
mActiveWidget = w;
stackedWidget->addWidget( mActiveWidget );
stackedWidget->setCurrentWidget( mActiveWidget );
if ( mMapCanvas )
if ( mMapCanvas && mActiveWidget->renderer() )
mActiveWidget->setMapCanvas( mMapCanvas );
}
else
Expand Down

0 comments on commit 2702cb1

Please sign in to comment.