Bug report #13218
regression: rule-based symbology broken when a rule has an empty filter
|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|
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
#2 Updated by Andreas Neumann almost 5 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.
#6 Updated by Andreas Neumann almost 5 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.