From 69ad906d9eb8623a3d280532662a0255056e4669 Mon Sep 17 00:00:00 2001 From: Remi Cohen-Scali Date: Tue, 13 Jan 2004 01:16:24 +0000 Subject: Fixed Outline object parsing. 2004-01-13 Remi Cohen-Scali * xpdf/Outline.cc: Fixed Outline object parsing. --- (limited to 'pdf/xpdf/Outline.cc') diff --git a/pdf/xpdf/Outline.cc b/pdf/xpdf/Outline.cc index cf9fd70..23efed1 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(); -- cgit v0.9.1