From e82a83808520f384279c9347faea486ec6d38296 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Mon, 8 Aug 2011 18:43:45 +0200 Subject: [PATCH] Fix problem in Item#rasterize(resolution) where rasterizing the active layer caused the resulting Raster to be positioned wrongly. --- src/item/Item.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 75b73eef..8fea80c8 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -677,8 +677,7 @@ var Item = this.Item = Base.extend(/** @lends Item# */{ matrix.applyToContext(ctx); this.draw(ctx, {}); var raster = new Raster(canvas); - raster.setPosition(this.getPosition()); - raster.scale(1 / scale); + raster.setBounds(bounds); return raster; },