diff --git a/src/path.js b/src/path.js index 8b2335d6032..11969b2862e 100644 --- a/src/path.js +++ b/src/path.js @@ -225,9 +225,7 @@ function pathOffset(path, distance) { /** Offsets a line by distance */ function offsetLine(from, to, distance) { - if (from.x === to.x && from.y === to.y) { - throw "Cannot offset a line that starts and ends in the same point"; - } + if (from.x === to.x && from.y === to.y) return false; let angle = from.angle(to) - 90; return new Path()