Skip to content

Commit

Permalink
Fix vector layer not having a renderer for checking duplicated rules
Browse files Browse the repository at this point in the history
fix #591
  • Loading branch information
Gustry committed Aug 2, 2024
1 parent 2ac242d commit 3d2bcfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lizmap/project_checker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ def duplicated_rule_key_legend(project: QgsProject, filter_data: bool = True) ->
continue

renderer = layer.renderer()
if not renderer:
# https://github.com/3liz/lizmap-plugin/issues/591
# A vector layer can be spatial but having symbology disabled
continue

results[layer.id()] = {}

Expand Down

0 comments on commit 3d2bcfe

Please sign in to comment.