From: Yury Delendik Date: Tue, 5 Jun 2012 22:56:18 +0000 (-0500) Subject: Fixes brackets X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d5da15e0017ae45b944642fd3d3c7185bb2e67c5;p=pdf.js.git Fixes brackets --- diff --git a/src/canvas.js b/src/canvas.js index 0be8cdb..06b02c2 100644 --- a/src/canvas.js +++ b/src/canvas.js @@ -1159,9 +1159,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { tmpCanvas = rescaleImage(imgData.data, widthScale, heightScale); ctx.scale(widthScale, heightScale); ctx.drawImage(tmpCanvas, 0, -h / heightScale); - } else + } else { tmpCtx.putImageData(imgData, 0, 0); ctx.drawImage(tmpCanvas, 0, -h); + } this.restore(); },