Skip to content

Commit

Permalink
Fix changing selected categorised renderer symbols (fix #15141)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 27, 2016
1 parent 91c2d76 commit df579a5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit df579a5

Please sign in to comment.