diff --git a/src/Mod/Path/Path/Op/Profile.py b/src/Mod/Path/Path/Op/Profile.py index 7a22572b55..7a74d41187 100644 --- a/src/Mod/Path/Path/Op/Profile.py +++ b/src/Mod/Path/Path/Op/Profile.py @@ -1449,8 +1449,7 @@ class ObjectProfile(PathAreaOp.ObjectOp): wL = wire.Length midW = wL / 2 - for e in range(0, len(wire.Edges)): - E = wire.Edges[e] + for E in Part.sortEdges(wire.Edges)[0]: elen = E.Length d_ = dist + elen if dist < midW and midW <= d_: