Address minor omission in previous commit.

This commit is contained in:
Jürg Lehni 2016-07-22 00:05:21 +02:00
parent a5a0e90bee
commit a5d04ef97c
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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++;