Skip to content
Permalink
Browse files

Fix initiation of feature counter map, use ruleKey

(cherry picked from commit 413baf7)
  • Loading branch information
nirvn authored and nyalldawson committed Feb 19, 2021
1 parent f48faf1 commit 7e24fdea3c7914302b23ba365a8d1cdba4cf5d7a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsvectorlayerfeaturecounter.cpp
@@ -40,9 +40,9 @@ bool QgsVectorLayerFeatureCounter::run()

for ( ; symbolIt != symbolList.constEnd(); ++symbolIt )
{
mSymbolFeatureCountMap.insert( symbolIt->label(), 0 );
mSymbolFeatureCountMap.insert( symbolIt->ruleKey(), 0 );
if ( mWithFids )
mSymbolFeatureIdMap.insert( symbolIt->label(), QgsFeatureIds() );
mSymbolFeatureIdMap.insert( symbolIt->ruleKey(), QgsFeatureIds() );
}

// If there are no features to be counted, we can spare us the trouble

0 comments on commit 7e24fde

Please sign in to comment.