Skip to content
Permalink
Browse files

Fix symbols drawn multiple times in rule based renderer if symbol

has multiple layers

(cherry-picked from a0d7653)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent f98fd33 commit bd551e8f2bf282511f808ab38cfad5d66d444467
@@ -449,7 +449,7 @@ void QgsRuleBasedRendererV2::Rule::setNormZLevels( const QMap<int, int>& zLevels
for ( int i = 0; i < mSymbol->symbolLayerCount(); i++ )
{
int normLevel = zLevelsToNormLevels.value( mSymbol->symbolLayer( i )->renderingPass() );
mSymbolNormZLevels.append( normLevel );
mSymbolNormZLevels.insert( normLevel );
}
}

@@ -200,7 +200,7 @@ class CORE_EXPORT QgsRuleBasedRendererV2 : public QgsFeatureRendererV2
// temporary
QgsExpression* mFilter;
// temporary while rendering
QList<int> mSymbolNormZLevels;
QSet<int> mSymbolNormZLevels;
RuleList mActiveChildren;
};

0 comments on commit bd551e8

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