poppler/OptionalContent.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f80f57fb62deae928d2bbe6e0248676eda42ed59
Author: Albert Astals Cid <[EMAIL PROTECTED]>
Date:   Thu Oct 9 22:53:00 2008 +0200

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

diff --git a/poppler/OptionalContent.cc b/poppler/OptionalContent.cc
index 0e2a65e..204872b 100644
--- a/poppler/OptionalContent.cc
+++ b/poppler/OptionalContent.cc
@@ -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 {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to