diff --git a/src/Mod/Draft/DraftGeomUtils.py b/src/Mod/Draft/DraftGeomUtils.py index 2305c5f6cc85..ae7683db3d37 100755 --- a/src/Mod/Draft/DraftGeomUtils.py +++ b/src/Mod/Draft/DraftGeomUtils.py @@ -277,7 +277,9 @@ def getLineIntersections(pt1,pt2,pt3,pt4,infinite1,infinite2): return [] # Lines aren't on same plane # First, try to use distToShape if possible - if dts and isinstance(edge1,Part.Edge) and isinstance(edge2,Part.Edge) and (not infinite1) and (not infinite2): + if dts and isinstance(edge1,Part.Edge) and isinstance(edge2,Part.Edge) \ + and (not infinite1) and (not infinite2) and \ + edge1.BoundBox.isIntersection(edge2.BoundBox): dist, pts, geom = edge1.distToShape(edge2) sol = [] for p in pts: