Fixed TextPath Bug (Issue 249, Credit for bug fix: @therth)

This commit is contained in:
Jason Follas
2013-08-27 08:30:41 -04:00
parent bd07d96628
commit b53d22a291

View File

@@ -226,7 +226,8 @@
else
currentT -= Math.PI / 360.0 * dTheta / Math.abs(dTheta);
if(Math.abs(currentT) > Math.abs(end)) {
// Credit for bug fix: @therth https://github.com/ericdrowell/KineticJS/issues/249
if(dTheta < 0 && currentT < end || dTheta >= 0 && currentT > end) {
currentT = end;
needNewSegment = true;
}