Skip to content
Permalink
Browse files

Fix segfault for unitilialized mAssistantPreviewSymbol

  • Loading branch information
elpaso committed Jan 27, 2017
1 parent eca795f commit 9a435adeda2a812caaddc1e5ebd14fc29db34e15
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/symbology-ng/qgssymbollayerwidget.cpp
@@ -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

0 comments on commit 9a435ad

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