Bug report #14118
regression: unchecking one sub-layer of a categorized symbology leads to no features being drawn
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 #: | 22120 |
Description
If one sub-layer node of a categorized symbology is unchecked, the whole layer fails to draw features of the other checked sub-layer categories. Not sure when this regression slipped into master, obviously needs addressing ;)
Steps to reproduce- Create a new project, add an existing vector layer with enough features and at least one field to create a categorized symbology
- Open the layer property, switch symbology to categorized, enter a field and classify
- Click on ok to leave the layer property window and return to the main canvas
- Uncheck one sub-layer category in the layer panel
- No features will be drawn, even though other sub categories have matching features
Related issues
Associated revisions
Correctly quote field name in categorized filters (fix #14118)
History
#1 Updated by Sebastian Dietrich almost 9 years ago
- File QgisCategorizedPartlyShown.png added
- Status changed from Open to Feedback
I can not reproduce using master (1cd4570136344caafebbe911bbe797ddbc87a56a).
Can you post the exact steps to reproduce and attach the files necessary?
#2 Updated by Nyall Dawson almost 9 years ago
Also try with
1. Expression compilation switched off
2. A different format dataset
#3 Updated by Mathieu Pellerin - nIRV almost 9 years ago
- Resolution set to not reproducable
- Status changed from Feedback to Closed
I can't reproduce this regression anymore (while I could yesterday). Closing to remove blocker noise, will re-open if I stumble on it and can attach a test case.
#4 Updated by Mathieu Pellerin - nIRV almost 9 years ago
- Resolution deleted (
not reproducable) - File classified_error.zip added
- Status changed from Closed to Reopened
Ah, found out what triggered the bug, that is a joined field. Attaching a testcase project.
Steps to reproduce- Load the attached classified_error project file
- Uncheck one of the sub-layer of the cphum09 layer
- Notice all features are gone, even though other sub-layers are checked and should render
#5 Updated by Nyall Dawson almost 9 years ago
- Status changed from Reopened to Closed
Fixed in changeset 8435fee4a434a4c30b96aa62d09dd345bb2577d4.