Skip to content
Permalink
Browse files

fixed change symbol button bug in categorized renderer

  • Loading branch information
tecoholic committed Oct 6, 2012
1 parent 80d645d commit ec16eed0f1c19a1a86720c1deac6df63c4653b81
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
@@ -153,10 +153,16 @@ QgsFeatureRendererV2* QgsCategorizedSymbolRendererV2Widget::renderer()

void QgsCategorizedSymbolRendererV2Widget::changeCategorizedSymbol()
{
QgsSymbolV2SelectorDialog dlg( mCategorizedSymbol, mStyle, mLayer, this );
QgsSymbolV2* newSymbol = mCategorizedSymbol->clone();

QgsSymbolV2SelectorDialog dlg( newSymbol, mStyle, mLayer, this );
if ( !dlg.exec() )
{
delete newSymbol;
return;
}

mCategorizedSymbol = newSymbol;
updateCategorizedSymbolIcon();
}

0 comments on commit ec16eed

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