Skip to content
Permalink
Browse files

Fix changing selected categorised renderer symbols (fix #15141)

  • Loading branch information
nyalldawson committed Jun 27, 2016
1 parent 91c2d76 commit df579a57e110463d34e46b9542a07a0e201adc7d
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
@@ -1028,10 +1028,8 @@ void QgsCategorizedSymbolRendererV2Widget::updateSymbolsFromWidget()
{
Q_FOREACH ( int idx, selectedCats )
{
QgsRendererCategoryV2 category = mRenderer->categories().value( idx );

QgsSymbolV2* newCatSymbol = mCategorizedSymbol->clone();
// newCatSymbol->setColor( mRenderer->categories()[idx].symbol()->color() );
newCatSymbol->setColor( mRenderer->categories().at( idx ).symbol()->color() );
mRenderer->updateCategorySymbol( idx, newCatSymbol );
}
emit widgetChanged();

0 comments on commit df579a5

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