Bug report #14351
composer: legend item count for layers with @atlas_ variables always return 0
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Map Composer/Printing | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | end of life |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 22336 |
Description
Legend items of rule-based layers featuring an expression containing @atlas_{feature,featureid,pagename,etc.} variable(s) will result in a feature count of 0 in the composer legend item (will also return 0 for the main canvas' layer items when the atlas is activated). I'm wondering whether this has to do with the atlas variables context not added to layer nodes, thus coming to a feature count of 0.
I've attached a test project that shows this issue quite well.
Steps to reproduce- Open the test project (atlas_count)
- Open the "Composer 1" composer sheet, and activate the atlas
- Move between features, and notice the composer item on the sheet shows [0] count even though the layer rule is valid and triggers several features (positive match visible through symbology)
I'm very pretty sure this is a regression, but have not confirmed it against QGIS 2.8 LTS
History
#1 Updated by Mathieu Pellerin - nIRV over 8 years ago
- File atlas_count.zip added
#2 Updated by Nyall Dawson over 8 years ago
- Priority changed from Severe/Regression to Normal
- Assignee deleted (
Nyall Dawson)
I've tested against 2.8. This isn't a regression.
#3 Updated by Mathieu Pellerin - nIRV over 8 years ago
- Subject changed from regression: composer legend item count for layers with @atlas_ variables always return 0 to composer: legend item count for layers with @atlas_ variables always return 0
Thanks for testing Nyall, sorry for the noise on this being a regression.
#4 Updated by Giovanni Manghi over 7 years ago
- Regression? set to No
- Easy fix? set to No
#5 Updated by Giovanni Manghi over 5 years ago
- Resolution set to end of life
- Status changed from Open to Closed
End of life notice: QGIS 2.18 LTR
Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/