Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/Outline.cc
diff options
context:
space:
mode:
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>2004-01-13 01:16:24 (GMT)
committer RĂ©mi Cohen-Scali <rcoscali@src.gnome.org>2004-01-13 01:16:24 (GMT)
commit69ad906d9eb8623a3d280532662a0255056e4669 (patch)
tree26fa8c80048f4b6a5f89f134ad948205677354e0 /pdf/xpdf/Outline.cc
parent6b40882a1572f31dd04c887285e1b13dcbe7cec0 (diff)
Fixed Outline object parsing.
2004-01-13 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/Outline.cc: Fixed Outline object parsing.
Diffstat (limited to 'pdf/xpdf/Outline.cc')
-rw-r--r--pdf/xpdf/Outline.cc10
1 files changed, 5 insertions, 5 deletions
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();