Update group.class.js

This commit is contained in:
Andrea Bogazzi 2015-05-05 12:54:53 +02:00
parent afcf7c1285
commit 02dca44656

View file

@ -234,8 +234,11 @@
}
ctx.save();
this.clipTo && fabric.util.clipContext(this, ctx);
if (this.transformMatrix) {
ctx.transform.apply(ctx, this.transformMatrix);
}
this.transform(ctx);
this.clipTo && fabric.util.clipContext(this, ctx);
// the array is now sorted in order of highest first, so start from end
for (var i = 0, len = this._objects.length; i < len; i++) {
this._renderObject(this._objects[i], ctx);