Bug report #14273
Categorized style : deselecting the NULL category makes all features invisible
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 #: | 22267 |
Description
Let's take a layer with an integer field.
In Properties --> Style I use an expression like myfield % 3 and get categories 0, 1, 2 and NULL.
Apply. All is ok.
Now uncheck the NULL category in the list. ALL the features become invisible in the map canvas although the other categories are still checked.
I unconsistently have the same behaviour when only using myfield to categorize the layer but I then need to test check/uncheck the different categories many times before ending sometimes with this weird behaviour. But not always.
master 7128a35
Associated revisions
Fix deselecting null category when categorising using expression
hides all features (fix #14273)
History
#1 Updated by Sebastian Dietrich almost 9 years ago
#2 Updated by Sebastian Dietrich almost 9 years ago
- File DeselectNullHidesAll.qgs added
I could reproduce this issue on current master and attached a self-contained test project.
#3 Updated by Nyall Dawson almost 9 years ago
- Priority changed from Normal to Severe/Regression
#4 Updated by Nyall Dawson almost 9 years ago
- Status changed from Open to Closed
Fixed in changeset 13c5848e5e06bc413b097583ce34dea59d2fff2d.