Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
KapiX committed Jul 22, 2019
1 parent 862f9c0 commit 51ce146
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions bepdf/beos/Annotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,15 +603,13 @@ LinkAnnot::LinkAnnot(Dict* d)
Object obj;

// look for destination
if (d->lookup("Dest", &obj) && !obj.isNull()) {
mLinkAction = LinkAction::parseDest(&obj);
// look for action
} else {
if (d->lookup("A", &obj) && obj.isDict()) {
mLinkAction = LinkAction::parseAction(&obj/*, baseURI*/);
}
}
obj.free();
if (d->lookup("Dest", &obj) && !obj.isNull()) {
mLinkAction = LinkAction::parseDest(&obj);
// look for action
} else if (d->lookup("A", &obj) && obj.isDict()) {
mLinkAction = LinkAction::parseAction(&obj/*, baseURI*/);
}
obj.free();
}

void LinkAnnot::Print() {
Expand Down

0 comments on commit 51ce146

Please sign in to comment.