Bug report #14118

regression: unchecking one sub-layer of a categorized symbology leads to no features being drawn

Added by Mathieu Pellerin - nIRV over 1 year ago. Updated over 1 year ago.

Status:Closed Start Date:01/15/2016
Priority:Severe/Regression Due date:
Assigned to:- % Done:


Target version:Version 2.14
Platform: Pull Request or Patch supplied:No
Platform version: Affected version:master
Status info: Causes crash or corruption:No
Resolution: Tag:


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
  1. Create a new project, add an existing vector layer with enough features and at least one field to create a categorized symbology
  2. Open the layer property, switch symbology to categorized, enter a field and classify
  3. Click on ok to leave the layer property window and return to the main canvas
  4. Uncheck one sub-layer category in the layer panel
  5. No features will be drawn, even though other sub categories have matching features

QgisCategorizedPartlyShown.png - Screenshot checked sub-layers are drawn (50.5 kB) Sebastian Dietrich, 01/16/2016 03:40 am

classified_error.zip (729.3 kB) Mathieu Pellerin - nIRV, 01/17/2016 05:44 pm

Related issues

related to QGIS Application - Bug report #13972: Categorize symbols uses wrong field after table join Closed 12/10/2015

Associated revisions

Revision 8435fee4a434a4c30b96aa62d09dd345bb2577d4
Added by Nyall Dawson over 1 year ago

Correctly quote field name in categorized filters (fix #14118)


Updated by Sebastian Dietrich over 1 year ago

I can not reproduce using master (1cd4570136344caafebbe911bbe797ddbc87a56a).

Can you post the exact steps to reproduce and attach the files necessary?

Screenshot checked sub-layers are drawn

Updated by Nyall Dawson over 1 year ago

Also try with

1. Expression compilation switched off
2. A different format dataset

Updated by Mathieu Pellerin - nIRV over 1 year ago

  • Status changed from Feedback to Closed
  • Resolution set to not reproducable

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.

Updated by Mathieu Pellerin - nIRV over 1 year ago

  • File classified_error.zip added
  • Status changed from Closed to Reopened
  • Resolution deleted (not reproducable)

Ah, found out what triggered the bug, that is a joined field. Attaching a testcase project.

Steps to reproduce
  1. Load the attached classified_error project file
  2. Uncheck one of the sub-layer of the cphum09 layer
  3. Notice all features are gone, even though other sub-layers are checked and should render

Updated by Nyall Dawson over 1 year ago

  • Status changed from Reopened to Closed

Also available in: Atom