Skip to content

Commit

Permalink
Fix initiation of feature counter map, use ruleKey
Browse files Browse the repository at this point in the history
(cherry picked from commit 413baf7)
  • Loading branch information
nirvn authored and nyalldawson committed Feb 19, 2021
1 parent f48faf1 commit 7e24fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayerfeaturecounter.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 7e24fde

Please sign in to comment.