mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Merge pull request #1209 from iconexperience/patch-3
Fix length comparison in Path.compare()
This commit is contained in:
commit
27a2757542
1 changed files with 1 additions and 1 deletions
|
@ -1558,7 +1558,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
||||||
if (!length1 || !length2) {
|
if (!length1 || !length2) {
|
||||||
// If one path defines curves and the other doesn't, we can't have
|
// If one path defines curves and the other doesn't, we can't have
|
||||||
// matching geometries.
|
// matching geometries.
|
||||||
return length1 ^ length2;
|
return length1 == length2;
|
||||||
}
|
}
|
||||||
var v1 = curves1[0].getValues(),
|
var v1 = curves1[0].getValues(),
|
||||||
values2 = [],
|
values2 = [],
|
||||||
|
|
Loading…
Reference in a new issue