Bug report #13631
when ELSE rule exists in Styling, all Labels are rendered regardless of styling groups being active/inactive
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21668|
If a layer using rule-based styling is active and has an ELSE rule (02ed712), then all the labels are rendered even though all the subgroups (including the ELSE rule) are set inactive.
Also, if one of the styling groups is inactive, labels are rendered for the features that fit the styling, and they shouldn't.
rule based renderer: keep skip else rule if an inactive rule matches, but still return if the feature was actually rendered so that only rendered features are labeled (fixes #13631)
#3 Updated by Andreas Neumann almost 6 years ago
- File test_labeling_with_else_rules.zip added
Thank you Jürgen for havinb a look at this.
However, I still have issues where labels are shown and the geometry is not shown.
Maybe an issue with ELSE rules combined with scale rules?
Demoproject uploaded. Project contains two layers - one without ELSE rule (behaves as expected), one with ELSE rule where labels are sometimes shown when they should't be shown.