]> git.parisson.com Git - pdf.js.git/commitdiff
Fix imageObj.imageMask bug from merge
authorJulian Viereck <julian.viereck@gmail.com>
Fri, 21 Oct 2011 07:42:44 +0000 (09:42 +0200)
committerJulian Viereck <julian.viereck@gmail.com>
Fri, 21 Oct 2011 07:42:44 +0000 (09:42 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index b1d61078a093f99eea51d5e5eb9c7be232ed1330..d1574ac31c6d4cd2fd12fe857f5f1eb769297f89 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -6057,13 +6057,13 @@ var CanvasGraphics = (function canvasGraphics() {
 
       var tmpCanvas = new this.ScratchCanvas(w, h);
       var tmpCtx = tmpCanvas.getContext('2d');
-      if (imageObj.imageMask) {
-        var fillColor = this.current.fillColor;
-        tmpCtx.fillStyle = (fillColor && fillColor.hasOwnProperty('type') &&
-                            fillColor.type === 'Pattern') ?
-                            fillColor.getPattern(tmpCtx) : fillColor;
-        tmpCtx.fillRect(0, 0, w, h);
-      }
+
+      var fillColor = this.current.fillColor;
+      tmpCtx.fillStyle = (fillColor && fillColor.hasOwnProperty('type') &&
+                          fillColor.type === 'Pattern') ?
+                          fillColor.getPattern(tmpCtx) : fillColor;
+      tmpCtx.fillRect(0, 0, w, h);
+
       var imgData = tmpCtx.getImageData(0, 0, w, h);
       var pixels = imgData.data;