Skip to content
Permalink
Browse files

fixed the change symbol button bug in graduated renderer

  • Loading branch information
tecoholic committed Oct 7, 2012
1 parent ec16eed commit 70b7c3bd96cac99d37ea1c374a735940de3b0768
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/gui/symbology-ng/qgsgraduatedsymbolrendererv2widget.cpp
@@ -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 );

0 comments on commit 70b7c3b

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