]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/Annot.cc
Imported Xpdf 2.03 and fixed build.
[evince.git] / pdf / xpdf / Annot.cc
index 20fe24bb34b8a40edb052c2dd4c3cd91241e36ad..42bf8499e0989fb1ff37f12b485c0d74d9a26a66 100644 (file)
@@ -100,7 +100,7 @@ void Annot::draw(Gfx *gfx) {
 
 Annots::Annots(XRef *xref, Object *annotsObj) {
   Annot *annot;
-  Object obj1, obj2;
+  Object obj1;
   int size;
   int i;
 
@@ -111,18 +111,16 @@ Annots::Annots(XRef *xref, Object *annotsObj) {
   if (annotsObj->isArray()) {
     for (i = 0; i < annotsObj->arrayGetLength(); ++i) {
       if (annotsObj->arrayGet(i, &obj1)->isDict()) {
-       obj1.dictLookup("Subtype", &obj2);
-        annot = new Annot(xref, obj1.getDict());
-        if (annot->isOk()) {
-                if (nAnnots >= size) {
-                        size += 16;
-                        annots = (Annot **)grealloc(annots, size * sizeof(Annot *));
-                }
-                annots[nAnnots++] = annot;
-        } else {
-                delete annot;
+       annot = new Annot(xref, obj1.getDict());
+       if (annot->isOk()) {
+         if (nAnnots >= size) {
+           size += 16;
+           annots = (Annot **)grealloc(annots, size * sizeof(Annot *));
+         }
+         annots[nAnnots++] = annot;
+       } else {
+         delete annot;
        }
-       obj2.free();
       }
       obj1.free();
     }