Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix initiation of feature counter map, use ruleKey
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+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 |
|
|