Skip to content

Commit

Permalink
Fix tree root detection
Browse files Browse the repository at this point in the history
Fix #242.
  • Loading branch information
liZe committed May 31, 2019
1 parent bcc808e commit e4c2365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cairosvg/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def __init__(self, **kwargs):
(url and url.startswith('#') and not self.url))
if self_is_parent:
root_parent = parent
while root_parent.parent:
while root_parent.parent is not None:
root_parent = root_parent.parent
tree = root_parent.xml_tree
else:
Expand Down

0 comments on commit e4c2365

Please sign in to comment.