rlottie: fix the issue with trim(start,end) update when offset is -ve.

This commit is contained in:
subhransu mohanty 2019-03-25 16:09:36 +09:00 committed by Subhransu
parent 5056b34db8
commit 4af06dc09c

View File

@ -786,8 +786,8 @@ public:
} else if (start < 0 && end < 0) {
return noloop(-start, -end);
} else {
if (start < 0) return loop(-start, end);
else return loop(start , -end);
if (start < 0) return loop(1 + start, end);
else return loop(start , 1 + end);
}
}
}