]> git.parisson.com Git - pdf.js.git/commitdiff
using tmpCtx instead of ctx
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 25 Aug 2011 03:02:44 +0000 (22:02 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 25 Aug 2011 03:02:44 +0000 (22:02 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index ab3b3768409cb918e46dd160e21fa82d46f91191..9739128f9264d87aadcbde1caeb0ab82c1f43eae 100644 (file)
--- 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);