clearRect() needs + 1 for size.

This commit is contained in:
Jürg Lehni 2013-02-12 16:07:24 -08:00
parent ca3cc7f46d
commit ea1e7fccb9

View file

@ -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