From a5d04ef97cea1e008f770c1d12f643de9464e2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 22 Jul 2016 00:05:21 +0200 Subject: [PATCH] Address minor omission in previous commit. --- src/path/Path.js | 6 +++--- src/path/PathItem.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index 0b144216..9039cdca 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1573,9 +1573,9 @@ var Path = PathItem.extend(/** @lends Path# */{ values2.push(v2); var overlaps = Curve.getOverlaps(v1, v2); if (overlaps) { - // If the overlap doesn't start at the beginning of v2, then - // it can only be the a partial overlap with curves2[0], and - // the start is at curves2[-1]: + // If the overlap doesn't start at the beginning of v2, then it + // can only be a partial overlap with curves2[0], and the start + // will be at curves2[length2 - 1]: pos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i; // Set end2 to the start of the first overlap on curves2, so // connection checks further down can work. diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 8cb7ca56..4be526a2 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -778,7 +778,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ var path1 = paths1[i1]; ok = false; for (var i2 = length2 - 1; i2 >= 0 && !ok; i2--) { - if (Path.compare(path1, paths2[i2])) { + if (path1.compare(paths2[i2])) { if (!matched[i2]) { matched[i2] = true; count++;