Correctly access colorSpace.numComps in MeshStreamReader (issue 6287)

This regressed in f750e35224.
This commit is contained in:
Jonas Jenwald 2015-07-31 17:55:51 +02:00
parent 7fe2442a18
commit 1d65daf5e5
4 changed files with 9 additions and 1 deletions

View File

@ -225,7 +225,7 @@ Shadings.Mesh = (function MeshClosure() {
var numComps = context.numComps;
this.tmpCompsBuf = new Float32Array(numComps);
var csNumComps = context.colorSpace;
var csNumComps = context.colorSpace.numComps;
this.tmpCsCompsBuf = context.colorFn ? new Float32Array(csNumComps) :
this.tmpCompsBuf;
}

View File

@ -23,6 +23,7 @@
!sizes.pdf
!close-path-bug.pdf
!issue2948.pdf
!issue6231_1.pdf
!issue4630.pdf
!issue4909.pdf
!issue5202.pdf

BIN
test/pdfs/issue6231_1.pdf Normal file

Binary file not shown.

View File

@ -641,6 +641,13 @@
"rounds": 1,
"type": "eq"
},
{ "id": "issue6231_1",
"file": "pdfs/issue6231_1.pdf",
"md5": "eb13a9366a5142833a858472c68b4749",
"link": false,
"rounds": 1,
"type": "eq"
},
{ "id": "usmanm-bad-auto-fetch",
"file": "pdfs/usmanm-bad.pdf",
"md5": "38afb822433aaf07fc8f54807cd4f61a",