From: notmasteryet Date: Thu, 25 Aug 2011 03:02:44 +0000 (-0500) Subject: using tmpCtx instead of ctx X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=824d6e4e71b1d6e20b5701c286c756aa1720f27c;p=pdf.js.git using tmpCtx instead of ctx --- diff --git a/pdf.js b/pdf.js index ab3b376..9739128 100644 --- a/pdf.js +++ b/pdf.js @@ -5115,7 +5115,7 @@ var CanvasGraphics = (function() { if (imageObj.imageMask) { var fillColor = this.current.fillColor; tmpCtx.fillStyle = (fillColor && fillColor.type === 'Pattern') ? - fillColor.getPattern(ctx) : fillColor; + fillColor.getPattern(tmpCtx) : fillColor; tmpCtx.fillRect(0, 0, w, h); } var imgData = tmpCtx.getImageData(0, 0, w, h);