Skip to content

Commit

Permalink
Draft: Fixed small bug in SVG output
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 25, 2017
1 parent 9a6191f commit fdd34ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Draft/Draft.py
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,8 @@ def getProj(vec):

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
Expand Down

0 comments on commit fdd34ef

Please sign in to comment.