Bug report #17090
Show/hide rule based styling issue in layers panel
|Affected QGIS version:||2.18.12||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24989|
I have a simple point data set with 3 points with one attribute - each point has a unique attribute value.
The layer has a ruled-based styling using the attribute to classify the styling.
I can turn on or off each of the three individual styles in the layers panel and this is where the issue appears:
If I turn on or off the third style, it either shows or hides - as expected.
If I turn the first style off it disappears on the map and is unchecked but the second style is also unchecked (but still drawn on the map) when hovering it afterwards.
If I turn the second style off, it is unchecked but still drawn on the map, however the feature corresponding to the first style is not drawn on the map and the first style is unchecked when hovering it afterwards.
I have attached the data set and the corresponding QGIS project.
#1 Updated by Casper Børgesen over 3 years ago
I can add that the cause isn't plugin related, since I tried reproducing the issue after deleting the ".qgis2" folder - and the issue persist.
An annoying workaround is to use the style panel to turn styling on and off, since it isn't affected by the issue. But the layer panel and the style panel desyncronises then. Turning on and off the first style in the style panel, checks and unchecks the first two styles in the layer panel, though the map is correctly drawn.