Fix regression: getLength has been split to getLength and getPartLength in master branch

This commit is contained in:
hkrish 2014-02-15 00:04:05 +01:00
parent 87ded4dcff
commit 83eaf70ee4

View file

@ -326,7 +326,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
segment = crv._segment1;
} else {
// Determine the closest segment by comparing curve lengths
segment = crv.getLength(0, t) < crv.getLength(t, 1)
segment = crv.getPartLength(0, t) < crv.getPartLength(t, 1)
? crv._segment1 : crv._segment2;
}
crvNew = crv;