From f4f4b3472f10f44eba3b47d802dcab9a2d083034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 27 Jul 2016 22:58:57 +0200 Subject: [PATCH] Minor code optimization. --- src/path/PathItem.Boolean.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 1276116f..839a3c59 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -694,11 +694,11 @@ PathItem.inject(new function() { // to which we may switch might be, so check that. || nextInter && isValid(nextInter._segment))) )) - return inter; + break; // If it's no match, continue with the next linked intersection. inter = inter._next; } - return start; + return inter || start; } // Sort segments to give non-ambiguous segments the preference as