From 824d6e4e71b1d6e20b5701c286c756aa1720f27c Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Wed, 24 Aug 2011 22:02:44 -0500 Subject: [PATCH] using tmpCtx instead of ctx --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index ab3b37684..9739128f9 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);