mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #691 from kkujala/dev
Fix strict javascript warning in CanvasGraphics.
This commit is contained in:
commit
2aa9b16b51
1 changed files with 3 additions and 2 deletions
5
pdf.js
5
pdf.js
|
@ -5649,8 +5649,9 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||
var tmpCtx = tmpCanvas.getContext('2d');
|
||||
if (imageObj.imageMask) {
|
||||
var fillColor = this.current.fillColor;
|
||||
tmpCtx.fillStyle = (fillColor && fillColor.type === 'Pattern') ?
|
||||
fillColor.getPattern(tmpCtx) : 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue