Fix handling of param.clip in CompoundPath#draw.

This commit is contained in:
Jonathan Puckey 2013-03-17 22:27:20 +01:00
parent e5c32b9520
commit e3760afecd

View file

@ -204,7 +204,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath#
for (var i = 0, l = children.length; i < l; i++)
Item.draw(children[i], ctx, param);
param.compound = false;
if (this._clipMask) {
if (param.clip || this._clipMask) {
ctx.clip();
} else {
this._setStyles(ctx);