Ensure that TilingPatterns have valid (non-zero) /BBox arrays (issue 8330)

Fixes 8330.
This commit is contained in:
Jonas Jenwald 2017-05-24 12:12:14 +02:00
parent 9342054502
commit e589834f13
5 changed files with 45 additions and 20 deletions

View file

@ -304,7 +304,7 @@ var TilingPattern = (function TilingPatternClosure() {
function TilingPattern(IR, color, ctx, canvasGraphicsFactory, baseTransform) {
this.operatorList = IR[2];
this.matrix = IR[3] || [1, 0, 0, 1, 0, 0];
this.bbox = Util.normalizeRect(IR[4]);
this.bbox = IR[4];
this.xstep = IR[5];
this.ystep = IR[6];
this.paintType = IR[7];