From 53770dfaded068979edac45484d97615a5ceaad5 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 25 May 2017 17:29:12 +0200 Subject: [PATCH] Fix incomplete creation of an SVG path from edges. * Observed bug: If an ArchWindow has two opening symbols (i.e. two sides that can be opened), only one was printed in SVG. * In Draft.getSVG.getPath, some edges got lost in the call of Part.__sortEdges__. In contrast, Part.sortEdges does not skip edges. All edges are retained. * With this fix, both opening symbols are rendered in Draft.getSVG. * While it works for my test case, I suppose, Draft.getSVG.getPath is used in some other places as well. Thus, side effects must be checked by experienced people. --- src/Mod/Draft/Draft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 8e0ba159a0..65fce87681 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1,4 +1,4 @@ -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- #*************************************************************************** #* * @@ -1891,7 +1891,7 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct svg += 'id="%s" ' % pathname svg += ' d="' if not wires: - egroups = (Part.__sortEdges__(edges),) + egroups = Part.sortEdges(edges) else: egroups = [] for w in wires: