Skip to content

Commit

Permalink
Correctly access colorSpace.numComps in MeshStreamReader (issue 6…
Browse files Browse the repository at this point in the history
…287)

This regressed in mozilla@f750e35.
  • Loading branch information
Snuffleupagus committed Jul 31, 2015
1 parent 7fe2442 commit 1d65daf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
!sizes.pdf
!close-path-bug.pdf
!issue2948.pdf
!issue6231_1.pdf
!issue4630.pdf
!issue4909.pdf
!issue5202.pdf
Expand Down
Binary file added test/pdfs/issue6231_1.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1d65daf

Please sign in to comment.