bugfix in dxf output of arc

regression created by 099ece5c00
This commit is contained in:
Sebastian Hoogen 2015-01-09 13:22:53 +01:00 committed by Yorik van Havre
parent 9ce08e7596
commit ff8ad03aa3

View File

@ -1357,6 +1357,9 @@ def getArcData(edge):
ang1,ang2=edge.ParameterRange
else:
ang2,ang1=edge.ParameterRange
if edge.Curve.XAxis != FreeCAD.Vector(1,0,0):
ang1 -= DraftVecUtils.angle(edge.Curve.XAxis)
ang2 -= DraftVecUtils.angle(edge.Curve.XAxis)
return DraftVecUtils.tup(ce), radius, math.degrees(ang1),\
math.degrees(ang2)