Draft: Fixed small bug in SVG output

This commit is contained in:
Yorik van Havre 2017-01-25 21:29:33 -02:00
parent 9a6191f572
commit fdd34efa43

View File

@ -1851,6 +1851,8 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct
def getDiscretized(edge):
ml = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetFloat("svgDiscretization",10.0)
if ml == 0:
ml = 10
d = int(edge.Length/ml)
if d == 0:
d = 1