diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 11914630..b3d9d045 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -1044,7 +1044,7 @@ Path.inject(/** @lends Path# */{ } } } - intercepts.sort(); + intercepts.sort(function(a, b) {return a - b}); point.x = (intercepts[0] + intercepts[1]) / 2; } return point;