Draft: avoid confusing SVG warning for nested circles and ellipses

Forum topic:
https://forum.freecad.org/viewtopic.php?t=90942
This commit is contained in:
Roy-043
2024-09-26 20:50:08 +02:00
committed by Yorik van Havre
parent 33bea16a38
commit 8875672e78

View File

@@ -152,12 +152,13 @@ def _get_path_circ_ellipse(plane, edge, verts, edata,
_a = _a.split("A")[1]
A = "A " + _a
except IndexError:
pass
# TODO: trap only specific exception.
# Check the problem. Split didn't produce a two element list?
_wrn("Circle or ellipse: "
"cannot split the projection snip "
"obtained by 'projectToSVG', "
"continue manually.")
# _wrn("Circle or ellipse: "
# "cannot split the projection snip "
# "obtained by 'projectToSVG', "
# "continue manually.")
else:
edata += A
done = True