Fix a little error with colorspace (#373)

This commit is contained in:
Vivien Nicolas 2011-08-25 03:38:15 +02:00
parent 93437352d0
commit a5d5f144bc

2
pdf.js
View File

@ -5230,7 +5230,7 @@ var ColorSpace = (function() {
constructor.parse = function colorspace_parse(cs, xref, res) {
if (IsName(cs)) {
var colorSpaces = res.get('ColorSpace');
if (colorSpaces) {
if (colorSpaces && colorSpaces.get) {
var refcs = colorSpaces.get(cs.name);
if (refcs)
cs = refcs;