Skip to content
Permalink
Browse files
Fix crash when style panel opened from style change btn
  • Loading branch information
elpaso committed May 16, 2018
1 parent 40499ee commit 0e57b887d6bd222d57afd4a5edd33fa1c4accc3e
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/symbology/qgscategorizedsymbolrendererwidget.cpp
  2. +1 −1 src/gui/symbology/qgsgraduatedsymbolrendererwidget.cpp
@@ -548,7 +548,7 @@ void QgsCategorizedSymbolRendererWidget::changeCategorizedSymbol()
std::unique_ptr<QgsSymbol> newSymbol( mCategorizedSymbol->clone() );
if ( panel && panel->dockMode() )
{
QgsSymbolSelectorWidget *dlg = new QgsSymbolSelectorWidget( newSymbol.get(), mStyle, mLayer, panel );
QgsSymbolSelectorWidget *dlg = new QgsSymbolSelectorWidget( newSymbol.release(), mStyle, mLayer, panel );
dlg->setContext( mContext );
connect( dlg, &QgsPanelWidget::widgetChanged, this, &QgsCategorizedSymbolRendererWidget::updateSymbolsFromWidget );
connect( dlg, &QgsPanelWidget::panelAccepted, this, &QgsCategorizedSymbolRendererWidget::cleanUpSymbolSelector );
@@ -878,8 +878,8 @@ void QgsGraduatedSymbolRendererWidget::reapplySizes()

void QgsGraduatedSymbolRendererWidget::changeGraduatedSymbol()
{
std::unique_ptr< QgsSymbol > newSymbol( mGraduatedSymbol->clone() );
QgsPanelWidget *panel = QgsPanelWidget::findParentPanel( this );
std::unique_ptr< QgsSymbol > newSymbol( mGraduatedSymbol->clone() );
if ( panel && panel->dockMode() )
{
QgsSymbolSelectorWidget *dlg = new QgsSymbolSelectorWidget( newSymbol.release(), mStyle, mLayer, panel );

0 comments on commit 0e57b88

Please sign in to comment.