Skip to content

Commit

Permalink
Fix initiation of feature counter map, use ruleKey
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 9, 2021
1 parent 1beb1bd commit 413baf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/vector/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 413baf7

Please sign in to comment.