[poppler] poppler/Annot.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Mon May 11 10:52:55 PDT 2009
poppler/Annot.cc | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit f16e36df3a74e1adf14513a6340be2e8665f8d65
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Sun May 10 19:24:32 2009 +0200
Don't include popups annots with a parent in annots list
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 8f3296e..8654f70 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -4039,6 +4039,19 @@ Annot *Annots::createAnnot(XRef *xref, Dict* dict, Catalog *catalog, Object *obj
annot = new Annot(xref, dict, catalog, obj);
} else if (!typeName->cmp("3D")) {
annot = new Annot3D(xref, dict, catalog, obj);
+ } else if (!typeName->cmp("Popup")) {
+ /* Popup annots are already handled by markup annots
+ * Here we only care about popup annots without a
+ * markup annotation associated
+ */
+ Object obj2;
+
+ if (dict->lookup("Parent", &obj2)->isNull())
+ annot = new AnnotPopup(xref, dict, catalog, obj);
+ else
+ annot = NULL;
+
+ obj2.free();
} else {
annot = new Annot(xref, dict, catalog, obj);
}
More information about the poppler
mailing list