mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Correctly access colorSpace.numComps
in MeshStreamReader
(issue 6287)
This regressed in f750e35224
.
This commit is contained in:
parent
7fe2442a18
commit
1d65daf5e5
4 changed files with 9 additions and 1 deletions
|
@ -225,7 +225,7 @@ Shadings.Mesh = (function MeshClosure() {
|
||||||
|
|
||||||
var numComps = context.numComps;
|
var numComps = context.numComps;
|
||||||
this.tmpCompsBuf = new Float32Array(numComps);
|
this.tmpCompsBuf = new Float32Array(numComps);
|
||||||
var csNumComps = context.colorSpace;
|
var csNumComps = context.colorSpace.numComps;
|
||||||
this.tmpCsCompsBuf = context.colorFn ? new Float32Array(csNumComps) :
|
this.tmpCsCompsBuf = context.colorFn ? new Float32Array(csNumComps) :
|
||||||
this.tmpCompsBuf;
|
this.tmpCompsBuf;
|
||||||
}
|
}
|
||||||
|
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -23,6 +23,7 @@
|
||||||
!sizes.pdf
|
!sizes.pdf
|
||||||
!close-path-bug.pdf
|
!close-path-bug.pdf
|
||||||
!issue2948.pdf
|
!issue2948.pdf
|
||||||
|
!issue6231_1.pdf
|
||||||
!issue4630.pdf
|
!issue4630.pdf
|
||||||
!issue4909.pdf
|
!issue4909.pdf
|
||||||
!issue5202.pdf
|
!issue5202.pdf
|
||||||
|
|
BIN
test/pdfs/issue6231_1.pdf
Normal file
BIN
test/pdfs/issue6231_1.pdf
Normal file
Binary file not shown.
|
@ -641,6 +641,13 @@
|
||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue6231_1",
|
||||||
|
"file": "pdfs/issue6231_1.pdf",
|
||||||
|
"md5": "eb13a9366a5142833a858472c68b4749",
|
||||||
|
"link": false,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "usmanm-bad-auto-fetch",
|
{ "id": "usmanm-bad-auto-fetch",
|
||||||
"file": "pdfs/usmanm-bad.pdf",
|
"file": "pdfs/usmanm-bad.pdf",
|
||||||
"md5": "38afb822433aaf07fc8f54807cd4f61a",
|
"md5": "38afb822433aaf07fc8f54807cd4f61a",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue