mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ensure that the baseTransform
is always defined for TilingPatterns
Fixes http://www2.emersonprocess.com/siteadmincenter/PM%20Micro%20Motion%20Documents/High-Pressure-Measurement-WP-001287.pdf#page=3.
This commit is contained in:
parent
20b5814249
commit
9eab463b6d
3 changed files with 13 additions and 1 deletions
|
@ -1558,8 +1558,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
var pattern;
|
||||
if (IR[0] === 'TilingPattern') {
|
||||
var color = IR[1];
|
||||
var baseTransform = this.baseTransform ||
|
||||
this.ctx.mozCurrentTransform.slice();
|
||||
pattern = new TilingPattern(IR, color, this.ctx, this.objs,
|
||||
this.commonObjs, this.baseTransform);
|
||||
this.commonObjs, baseTransform);
|
||||
} else {
|
||||
pattern = getShadingPatternFromIR(IR);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue