From 637e85b31b99c5b4ce34dc7d2b64e43492910775 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 17 Feb 2011 16:50:06 +0100 Subject: [PATCH] Group: fix clipping. --- src/item/Group.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/item/Group.js b/src/item/Group.js index ab7b76ce..8ff24104 100644 --- a/src/item/Group.js +++ b/src/item/Group.js @@ -12,11 +12,13 @@ Group = Item.extend({ }, draw: function(ctx) { + ctx.save(); for (var i = 0, l = this.children.length; i < l; i++) { this.children[i].draw(ctx); if(this.clipped & i == 0) ctx.clip(); } + ctx.restore(); }, getBounds: function() {