From: Remi Cohen-Scali Date: Tue, 13 Jan 2004 01:16:24 +0000 (+0000) Subject: Fixed Outline object parsing. X-Git-Tag: GPDF_0_122~8 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;ds=inline;h=69ad906d9eb8623a3d280532662a0255056e4669;p=evince.git Fixed Outline object parsing. 2004-01-13 Remi Cohen-Scali * xpdf/Outline.cc: Fixed Outline object parsing. --- diff --git a/pdf/xpdf/Outline.cc b/pdf/xpdf/Outline.cc index cf9fd707..23efed18 100644 --- a/pdf/xpdf/Outline.cc +++ b/pdf/xpdf/Outline.cc @@ -42,7 +42,7 @@ Outline::~Outline() { //------------------------------------------------------------------------ OutlineItem::OutlineItem(Dict *dict, XRef *xrefA) { - Object obj1; + Object obj1, obj2; GString *s; int i; @@ -74,10 +74,10 @@ OutlineItem::OutlineItem(Dict *dict, XRef *xrefA) { if (!dict->lookup("Dest", &obj1)->isNull()) { action = LinkAction::parseDest(&obj1); } else { - obj1.free(); - if (dict->lookup("A", &obj1)) { - action = LinkAction::parseAction(&obj1); - } + obj1.free(); + dict->lookup("A", &obj1); + if (!obj1.isNull()) + action = LinkAction::parseAction(&obj1); } obj1.free();