Bug report #14273

Categorized style : deselecting the NULL category makes all features invisible

Added by Harrissou Santanna about 4 years ago. Updated about 4 years ago.

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

DeselectNullHidesAll.qgs - Self-contained project to reproduce this bug. (23.2 KB) Sebastian Dietrich, 2016-02-15 01:40 PM

Associated revisions

Revision 13c5848e
Added by Nyall Dawson about 4 years ago

Fix deselecting null category when categorising using expression
hides all features (fix #14273)

History

#1 Updated by Sebastian Dietrich about 4 years ago

Very interesting. There was a similar issue in the rule-based style (#13708). And we have quite the inverse issue for labels (#14147).

How was the behavior in 2.12? If it is a regression it might qualify as a blocker.

#2 Updated by Sebastian Dietrich about 4 years ago

I could reproduce this issue on current master and attached a self-contained test project.

#3 Updated by Nyall Dawson about 4 years ago

  • Priority changed from Normal to Severe/Regression

#4 Updated by Nyall Dawson about 4 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF