Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-02-24 16:59:04 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-02-24 16:59:04 (GMT)
commit6f7b6348dbaac85f6694242a08dd1374e16d317f (patch)
tree9af5bd7eac8af04e3f0bf708a5c1484aa799ef13 /pdf
parentffd817da58c15bc17cc1a5534b53f7ad6766c876 (diff)
Return a link even if it's of an unrecognized type. Otherwise we go in an
2005-02-24 Marco Pesenti Gritti <marco@gnome.org> * pdf/xpdf/pdf-document.cc: Return a link even if it's of an unrecognized type. Otherwise we go in an infinte cycle.
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;
}