Skip to content
Permalink
Browse files

[fix #13503] avoid crash when switch between style widgets and render…

…er cannot be applied to layer
  • Loading branch information
slarosa authored and nyalldawson committed Oct 7, 2015
1 parent 2c39a5b commit 2702cb1565b71b1c0d12a71638ae5867cf1c9454
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/symbology-ng/qgsrendererv2propertiesdialog.cpp
@@ -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

0 comments on commit 2702cb1

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