Skip to content

Commit

Permalink
fixed change symbol button bug in categorized renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunmozhi committed Oct 6, 2012
1 parent 80d645d commit ec16eed
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ec16eed

Please sign in to comment.