[poppler] Branch 'poppler-0.10' - poppler/OptionalContent.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu Oct 9 13:54:32 PDT 2008


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

New commits:
commit f80f57fb62deae928d2bbe6e0248676eda42ed59
Author: Albert Astals Cid <aacid at kde.org>
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 {


More information about the poppler mailing list