Use IsDict instead of checking the property for colorSpaces

This commit is contained in:
Vivien Nicolas 2011-08-25 04:27:49 +02:00
parent a5d5f144bc
commit c6e4dadf94

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 && colorSpaces.get) {
if (IsDict(colorSpaces)) {
var refcs = colorSpaces.get(cs.name);
if (refcs)
cs = refcs;