Fix ColorSpace lookup in ColorSpace.parseToIR

This commit is contained in:
Julian Viereck 2011-10-09 13:24:54 +02:00
parent ac32f6f426
commit 98b4c5bbfc

2
pdf.js
View File

@ -6458,7 +6458,7 @@ var ColorSpace = (function colorSpaceColorSpace() {
constructor.parseToIR = function colorspace_parse(cs, xref, res, parseOnly) {
if (isName(cs)) {
var colorSpaces = res.get('ColorSpace');
var colorSpaces = xref.fetchIfRef(res.get('ColorSpace'));
if (isDict(colorSpaces)) {
var refcs = colorSpaces.get(cs.name);
if (refcs)