Skip to content

Commit

Permalink
fixed the change symbol button bug in graduated renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunmozhi committed Oct 7, 2012
1 parent ec16eed commit 70b7c3b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gui/symbology-ng/qgsgraduatedsymbolrendererv2widget.cpp
Expand Up @@ -239,9 +239,17 @@ void QgsGraduatedSymbolRendererV2Widget::reapplyColorRamp()

void QgsGraduatedSymbolRendererV2Widget::changeGraduatedSymbol()
{
QgsSymbolV2SelectorDialog dlg( mGraduatedSymbol, mStyle, mLayer, this );

QgsSymbolV2* newSymbol = mGraduatedSymbol->clone();

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

mGraduatedSymbol = newSymbol;

updateGraduatedSymbolIcon();
mRenderer->updateSymbols( mGraduatedSymbol );
Expand Down

0 comments on commit 70b7c3b

Please sign in to comment.