poppler/Annot.cc | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit f16e36df3a74e1adf14513a6340be2e8665f8d65
Author: Carlos Garcia Campos <[email protected]>
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);
}
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler