Fix problem in Item#rasterize(resolution) where rasterizing the active layer caused the resulting Raster to be positioned wrongly.

This commit is contained in:
Jonathan Puckey 2011-08-08 18:43:45 +02:00
parent a58bbaf6cf
commit e82a838085

View file

@ -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;
},