Fix changing selected categorised renderer symbols (fix #15141)

This commit is contained in:
Nyall Dawson 2016-06-27 12:16:11 +10:00
parent 91c2d769a1
commit df579a57e1

View File

@ -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();