From 2ca34cddac81051587e26f6c1dc212f0b57abc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 15 Jan 2017 18:43:47 +0100 Subject: [PATCH] Prevent rare case where we get excluded intersections without valid curves at the start. --- src/path/PathItem.Boolean.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 3b9ce1d1..1ccc3b23 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -321,7 +321,8 @@ PathItem.inject(new function() { if (exclude) { // Store excluded locations for later renormalization, in case // the same curve is divided to their left. - renormalizeLocs.push(loc); + if (renormalizeLocs) + renormalizeLocs.push(loc); continue; } else if (include) { results.unshift(loc);