Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol levels reset when changing style settings #26547

Closed
qgib opened this issue Apr 7, 2018 · 3 comments · Fixed by #31413
Closed

Symbol levels reset when changing style settings #26547

qgib opened this issue Apr 7, 2018 · 3 comments · Fixed by #31413
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Apr 7, 2018

Author Name: Klas Karlsson (@klakar)
Original Redmine Issue: 18659
Affected QGIS version: 3.0.0
Redmine category:symbology


A line layer with a symbol layer order that is +not+ in the default order will apply properly, but when a style property for the line is changed, the symbol levels are reset to the default order.

Not sure if this is a regression...

no_levels.png
Style with three layers, and no symbol levels.

levels.png
Applying symbol levels so that drawing order change works.

But if I change for example the line width for anything in the styles, the symbol levels will revert to the starting drawing order for symbol levels. For complex rule based layers with multiple styles and symbol levels, this is a problem.

WORKAROUND:
Make sure your symbol layers are in the correct drawing order before applying symbol levels.

It may be a small problem, but symbol level reordering feels broken...


@qgib
Copy link
Contributor Author

qgib commented Apr 7, 2018

Author Name: Klas Karlsson (@klakar)


Update!

It seems like I can "lock" the symbol levels by switching to a different layer in the style panel and then switch back to the layer with symbol levels, before making any changes to the styles...

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 25, 2019
@anitagraser
Copy link
Member

I can confirm this in master:

Symbol levels are set up:

image

Whenever any symbol layer is changed, all symbol levels are reset to zero:

image

I've also observed this behavior when making changes to the symbol of a categorized renderer. All symbol level settings are lost when the symbol is changed.

@nirvn
Copy link
Contributor

nirvn commented Aug 25, 2019

Just to add on this, the symbol levels aren't really reset to zero, they are reset to the last values upon opening the style panel / switch the style panel's layer focus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants