diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | pdf/xpdf/pdf-document.cc | 8 |
2 files changed, 12 insertions, 3 deletions
@@ -1,5 +1,12 @@ 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. + +2005-02-24 Marco Pesenti Gritti <marco@gnome.org> + * shell/ev-window.c: (update_sizing_buttons), (update_view_size), (size_allocate_cb), (ev_window_set_sizing_mode): 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; } |