Skip to content
Permalink
Browse files

Fix initiation of feature counter map, use ruleKey

  • Loading branch information
nirvn committed Feb 9, 2021
1 parent 1beb1bd commit 413baf7b71b95022958f38698ad26c71e36c3424
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/vector/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 413baf7

Please sign in to comment.