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.
This commit is contained in:
Simon
2017-05-25 17:29:12 +02:00
committed by Yorik van Havre
parent c4b1685728
commit 53770dfade

View File

@@ -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: