From 07369af9df8ad5ee39fbe15d9904cfb4f65894f3 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Sat, 8 Sep 2012 17:44:55 +0200 Subject: [PATCH] Fixed bug on clonePixels_ need to stop commiting and pushing without testing ... --- js/model/Frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/model/Frame.js b/js/model/Frame.js index 04790344..bef3e94c 100644 --- a/js/model/Frame.js +++ b/js/model/Frame.js @@ -48,7 +48,7 @@ ns.Frame.prototype.clonePixels_ = function (pixels) { var clonedPixels = []; for (var col = 0 ; col < pixels.length ; col++) { - clonedPixels[col] = pixels[col].slice(0 , this.getHeight()); + clonedPixels[col] = pixels[col].slice(0 , pixels[col].length-1); } return clonedPixels; };