Skip to content

Commit

Permalink
more strict check for 'layer'
Browse files Browse the repository at this point in the history
  • Loading branch information
relleums committed Aug 19, 2024
1 parent de9ef59 commit 8005de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyslidescape/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def find_inkscape_labels_for_layers_in_inkscape_svg(path):
for g in svg.getElementsByTagName("g"):
if "inkscape:label" in g.attributes:
if "id" in g.attributes:
if "layer" in g.attributes["id"].value:
if "layer" == g.attributes["id"].value:
inkscape_labels.append(
g.attributes["inkscape:label"].value
)
Expand Down

0 comments on commit 8005de0

Please sign in to comment.