Skip to content
Permalink
Browse files

Fix symbols drawn multiple times in rule based renderer if symbol

has multiple layers

(fixes #some-blocking-issue-i-can't-find-because-hub-is-down)
  • Loading branch information
nyalldawson committed Oct 8, 2015
1 parent b55708e commit a0d7653b53e63da9751755096b7bb4445e7632a1
@@ -493,7 +493,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 );
}
}

@@ -360,7 +360,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 a0d7653

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