Skip to content

Commit

Permalink
Fix segfault for unitilialized mAssistantPreviewSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 27, 2017
1 parent eca795f commit 9a435ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/symbology-ng/qgssymbollayerwidget.cpp
Expand Up @@ -1769,9 +1769,9 @@ QgsSvgMarkerSymbolLayerWidget::QgsSvgMarkerSymbolLayerWidget( const QgsVectorLay
connect( spinOffsetY, SIGNAL( valueChanged( double ) ), this, SLOT( setOffset() ) );
connect( this, SIGNAL( changed() ), this, SLOT( updateAssistantSymbol() ) );

#if 0
//make a temporary symbol for the size assistant preview
mAssistantPreviewSymbol = new QgsMarkerSymbol();
#if 0
if ( vectorLayer() )
mSizeDDBtn->setAssistant( tr( "Size Assistant..." ), new QgsSizeScaleWidget( vectorLayer(), mAssistantPreviewSymbol ) );
#endif
Expand Down

0 comments on commit 9a435ad

Please sign in to comment.