From ea1e7fccb9365561acd73eae74d2910930515514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 12 Feb 2013 16:07:24 -0800 Subject: [PATCH] clearRect() needs + 1 for size. --- src/item/Raster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Raster.js b/src/item/Raster.js index c95dca00..8922b902 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -327,7 +327,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{ new Size(sampleSize)); } else { // Clear the sample canvas: - ctx.clearRect(0, 0, sampleSize, sampleSize); + ctx.clearRect(0, 0, sampleSize + 1, sampleSize + 1); } ctx.save(); // Scale the context so that the bounds ends up at the given sample size