Skip to content

Commit

Permalink
Draft: small fix in trackers - fixes #1757
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Sep 18, 2014
1 parent 6e5fbc7 commit 328bdcf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Draft/DraftSnap.py
Expand Up @@ -575,7 +575,10 @@ def snapToPolar(self,point,last):
vecs.extend([v,v.negative()])
for v in vecs:
if not DraftVecUtils.isNull(v):
de = Part.Line(last,last.add(v)).toShape()
try:
de = Part.Line(last,last.add(v)).toShape()
except Part.OCCError:
return point,None
np = self.getPerpendicular(de,point)
if ((self.radius == 0) and (point.sub(last).getAngle(v) < 0.087)) \
or ((np.sub(point)).Length < self.radius):
Expand Down

0 comments on commit 328bdcf

Please sign in to comment.