Fix single equal compare.

This commit is contained in:
Jürg Lehni 2011-06-04 21:46:48 +01:00
parent 90be683113
commit 6095723e70

View file

@ -120,7 +120,7 @@ var PathFlattener = Base.extend({
var curve = Curve.getPart.apply(Curve, this.curves[i].concat(
i == from.index ? from.value : 0,
i == to.index ? to.value : 1));
if (i = from.index)
if (i == from.index)
ctx.moveTo(curve[0], curve[1]);
ctx.bezierCurveTo.apply(ctx, curve.slice(2));
}