Commit d7442c90 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

If Name is a Ref we want to get the String it references, not the Ref

parent 93f8dd9e
......@@ -288,7 +288,7 @@ bool OCGs::anyOff( Array *ocgArray )
OptionalContentGroup::OptionalContentGroup(Dict *ocgDict, XRef *xrefA) : m_name(NULL)
Object ocgName;
ocgDict->lookupNF("Name", &ocgName);
ocgDict->lookup("Name", &ocgName);
if (!ocgName.isString()) {
error(-1, "Expected the name of the OCG, but wasn't able to find it, or it isn't a String");
} else {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment