From 8875672e78a31e9999686c00617dd0bee6412b5d Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Thu, 26 Sep 2024 20:50:08 +0200 Subject: [PATCH] Draft: avoid confusing SVG warning for nested circles and ellipses Forum topic: https://forum.freecad.org/viewtopic.php?t=90942 --- src/Mod/Draft/draftfunctions/svgshapes.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/draftfunctions/svgshapes.py b/src/Mod/Draft/draftfunctions/svgshapes.py index 1c42668ede..efe62186ef 100644 --- a/src/Mod/Draft/draftfunctions/svgshapes.py +++ b/src/Mod/Draft/draftfunctions/svgshapes.py @@ -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