mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Address minor omission in previous commit.
This commit is contained in:
parent
a5a0e90bee
commit
a5d04ef97c
2 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue