]> www.fi.muni.cz Git - evince.git/commitdiff
Return a link even if it's of an unrecognized type. Otherwise we go in an
authorMarco Pesenti Gritti <marco@gnome.org>
Thu, 24 Feb 2005 16:59:04 +0000 (16:59 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 24 Feb 2005 16:59:04 +0000 (16:59 +0000)
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.

ChangeLog
pdf/xpdf/pdf-document.cc

index dcfb0c512d7520d95d520b941af00714ba86186e..7f1f722030783a61eece400a41f1a457e988c16b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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),
index 82838f471624a75916a95dd0766d259f9890067f..bfc5bf8a5a30c1d8dcce391154d06f67acb14f77 100644 (file)
@@ -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;
 }