Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/pdf-document.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc
index 82838f4..bfc5bf8 100644
--- a/pdf/xpdf/pdf-document.cc
+++ b/pdf/xpdf/pdf-document.cc
@@ -791,9 +791,7 @@ build_link_from_action (PdfDocument *pdf_document,
{
EvLink *link = NULL;
- if (link_action == NULL) {
- link = ev_link_new_title (title);
- } else if (link_action->getKind () == actionGoToR) {
+ if (link_action->getKind () == actionGoToR) {
g_warning ("actionGoToR links not implemented");
} else if (link_action->getKind () == actionLaunch) {
g_warning ("actionLaunch links not implemented");
@@ -847,6 +845,10 @@ build_link_from_action (PdfDocument *pdf_document,
link_unknown->getAction()->getCString());
}
+ if (link == NULL) {
+ link = ev_link_new_title (title);
+ }
+
return link;
}