1
0
Fork 0
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:
Jonas Jenwald 2015-09-27 22:43:23 +02:00
parent 20b5814249
commit 9eab463b6d
3 changed files with 13 additions and 1 deletions

View file

@ -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);
}