You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/bch/.local/bin/svg2tikz", line 8, in<module>sys.exit(main_cmdline())
File "/home/bch/svg2tikz/svg2tikz/tikz_export.py", line 1421, in main_cmdline
effect.convert(**kwargs)
File "/home/bch/svg2tikz/svg2tikz/tikz_export.py", line 1376, in convert
self.run()
File "/home/bch/svg2tikz/svg2tikz/tikz_export.py", line 1349, in run
self.save_raw(self.effect())
File "/home/bch/svg2tikz/svg2tikz/tikz_export.py", line 1267, in effect
string = self._output_group(nodes)
File "/home/bch/svg2tikz/svg2tikz/tikz_export.py", line 1186, in _output_group
goptions = self.style_to_tz(node) + self.trans_to_tz(node)
File "/home/bch/svg2tikz/svg2tikz/tikz_export.py", line 772, in style_to_tz
if style.get("display") == "none" or not node.is_visible:
File "/home/bch/.local/lib/python3.9/site-packages/inkex/elements/_base.py", line 147, in __getattr__
raise AttributeError(f"Can't find attribute {self.typename}.{name}")
AttributeError: Can't find attribute Metadata.is_visible
Expected behavior
I believe entities without the is_visible attribute could be considered visible instead of raising an error.
The text was updated successfully, but these errors were encountered:
Describe the bug
svg2tikz fails to generate a valid output when the
is_visible
attribute does not exist.Setup:
To Reproduce
Input SVG (generated with Inkscape):
Command used:
Output result:
Expected behavior
I believe entities without the
is_visible
attribute could be considered visible instead of raising an error.The text was updated successfully, but these errors were encountered: