Skip to content

Commit 573e5f5

Browse files
Merge pull request #19305 from Snuffleupagus/issue-18816
Access the bbox/background data correctly in the `MeshShadingPattern` class (issue 18816)
2 parents 115af68 + 916fff0 commit 573e5f5

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

src/display/pattern_helper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ class MeshShadingPattern extends BaseShadingPattern {
313313
this._colors = IR[3];
314314
this._figures = IR[4];
315315
this._bounds = IR[5];
316-
this._bbox = IR[7];
317-
this._background = IR[8];
316+
this._bbox = IR[6];
317+
this._background = IR[7];
318318
this.matrix = null;
319319
}
320320

test/pdfs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
!issue8424.pdf
9595
!issue8480.pdf
9696
!bug1650302_reduced.pdf
97+
!issue18816.pdf
9798
!issue8570.pdf
9899
!issue8697.pdf
99100
!issue8702.pdf

test/pdfs/issue18816.pdf

3.39 KB
Binary file not shown.

test/test_manifest.json

+7
Original file line numberDiff line numberDiff line change
@@ -10078,6 +10078,13 @@
1007810078
"annotations": true,
1007910079
"type": "eq"
1008010080
},
10081+
{
10082+
"id": "issue18816",
10083+
"file": "pdfs/issue18816.pdf",
10084+
"md5": "45f863f5b227f700ffea1210e4f80403",
10085+
"rounds": 1,
10086+
"type": "eq"
10087+
},
1008110088
{
1008210089
"id": "issue17794",
1008310090
"file": "pdfs/issue17794.pdf",

0 commit comments

Comments
 (0)