Commit 7a703616 authored by Kristian Høgsberg's avatar Kristian Høgsberg

Thu Apr 21 15:43:52 2005 Kristian Høgsberg <krh@redhat.com>

        * poppler/Outline.cc:
        * poppler/Outline.h: Implement the documented behaviour for
        Outline::getItems() and OutlineItem::getKids() and make
        documentation more precise (Patch from Marco).
parent 5c89902c
Thu Apr 21 15:43:52 2005 Kristian Høgsberg <krh@redhat.com>
* poppler/Outline.cc:
* poppler/Outline.h: Implement the documented behaviour for
Outline::getItems() and OutlineItem::getKids() and make
documentation more precise (Patch from Marco).
Thu Apr 21 02:25:20 2005 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoFontEngine.cc (CairoFont::getFont): Cache
......
......@@ -134,6 +134,12 @@ GooList *OutlineItem::readItemList(Object *firstItemRef, Object *lastItemRef,
}
p = &item->nextRef;
}
if (!items->getLength()) {
delete items;
items = NULL;
}
return items;
}
......
......@@ -33,8 +33,8 @@ public:
private:
GooList *items; // NULL if document has no outline
// [OutlineItem]
GooList *items; // NULL if document has no outline,
// otherwise, a list of OutlineItem
};
//------------------------------------------------------------------------
......@@ -68,7 +68,8 @@ private:
Object lastRef;
Object nextRef;
GBool startsOpen;
GooList *kids; // NULL unless this item is open [OutlineItem]
GooList *kids; // NULL if this item is closed or has no kids,
// otherwise a list of OutlineItem
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment