Minor simplification.

This commit is contained in:
Jürg Lehni 2014-02-19 14:28:35 +01:00
parent 74a153dd88
commit 9de4189233

View file

@ -319,7 +319,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
newSegments.length = 0;
}
// Split the curve at t, while ignoring linearity of curves
if ((crvNew = crv.divide(t, true, true)) === null) {
if (!(crvNew = crv.divide(t, true, true))) {
if (t >= 1-tolerance) {
segment = crv._segment2;
} else if (t <= tolerance) {