Bug report #13218
regression: rule-based symbology broken when a rule has an empty filter
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Symbology | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21279 |
Description
A regression emerged recently under QGIS master wheras the rule-based symbology will fail to render anything if one of its rules has no filter set (i.e. shows as (no filter) in the rules list).
Steps to reproduce:- Create a new project
- Add a layer (large polygons will do best)
- Open the layer property, and set the symbology to rule-based
- Make sure that the single rule has no filter
- Apply, and see all the features gone
Associated revisions
Rule based renderer: empty rule matches all
Fix #13218
Rule-based renderer fully recover "empty filter matches all"
Fix #13218
History
#1 Updated by Anonymous over 9 years ago
- Status changed from Open to Closed
Fixed in changeset abf2398880d4ce71e8f99d3747f62928f7588acc.
#2 Updated by Andreas Neumann over 9 years ago
- Status changed from Closed to Reopened
- File unterirdische_gebaeude.zip added
hm - still fails for my data.
Attached you find some data and a qml file. If you load it, the rule labeled "Unterirdisches Gebäude, Reservoir" (which is a "no filter" rule) only displays if the two other rules are off.
#3 Updated by Andreas Neumann over 9 years ago
#4 Updated by Anita Graser over 9 years ago
I can confirm that this issue still exists in today's OSGeo4W qgis-dev.
#5 Updated by Denis Rouzaud over 9 years ago
it works if you nest the two rules (Gestrichelt2 and Punktiert) into the Unterirdisches Gebaude, which I believe would be the logical structure.
#6 Updated by Andreas Neumann over 9 years ago
Thanks Denis for the hint. It may work in this particular case.
However - quite often the individual rules can't be nested as they have nothing to do with each other. I also have several projects and layers that I would have to change. Quite time consuming.
It is also a bit annoying if old content breaks because of a change in behaviour.
#7 Updated by Anonymous about 9 years ago
- Status changed from Reopened to Closed
Fixed in changeset 978265c9fb50802b6a62fc07cd1a61ae1402c11f.