mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
using tmpCtx instead of ctx
This commit is contained in:
parent
dacd239ed2
commit
824d6e4e71
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue