1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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;
}