Skip to content

Commit

Permalink
Draft: minor bugfix in SVG output
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Sep 8, 2016
1 parent 61f663d commit ae02a45
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Mod/Draft/Draft.py
Expand Up @@ -2222,10 +2222,11 @@ def getText(color,fontsize,fontname,angle,base,text,linespacing=0.5,align="cente
(obj.Name,i))
else:
# closed circle or spline
if isinstance(obj.Shape.Edges[0].Curve,Part.Circle):
svg = getCircle(obj.Shape.Edges[0])
else:
svg = getPath(obj.Shape.Edges)
if obj.Shape.Edges:
if isinstance(obj.Shape.Edges[0].Curve,Part.Circle):
svg = getCircle(obj.Shape.Edges[0])
else:
svg = getPath(obj.Shape.Edges)
return svg

def getrgb(color,testbw=True):
Expand Down

0 comments on commit ae02a45

Please sign in to comment.