Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/FreeCAD/FreeCAD
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 14, 2016
2 parents 268d7f4 + 8eedc79 commit 5b069f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Mod/Draft/Draft.py
Expand Up @@ -2275,6 +2275,14 @@ def getText(color,fontsize,fontname,angle,base,text,linespacing=0.5,align="cente
svg = getCircle(obj.Shape.Edges[0])
else:
svg = getPath(obj.Shape.Edges)
if FreeCAD.GuiUp:
if hasattr(obj.ViewObject,"EndArrow") and hasattr(obj.ViewObject,"ArrowType") and (len(obj.Shape.Vertexes) > 1):
if obj.ViewObject.EndArrow:
p1 = getProj(obj.Shape.Vertexes[-2].Point)
p2 = getProj(obj.Shape.Vertexes[-1].Point)
angle = -DraftVecUtils.angle(p2.sub(p1))
arrowsize = obj.ViewObject.ArrowSize.Value/pointratio
svg += getArrow(obj.ViewObject.ArrowType,p2,arrowsize,stroke,linewidth,angle)
return svg

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

0 comments on commit 5b069f9

Please sign in to comment.