]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/pdf-document.cc
Return a link even if it's of an unrecognized type. Otherwise we go in an
[evince.git] / pdf / xpdf / pdf-document.cc
index 777e94922c2c82f167ef9bb551c9ed2bf132a9dd..bfc5bf8a5a30c1d8dcce391154d06f67acb14f77 100644 (file)
@@ -311,7 +311,7 @@ pdf_document_set_target (EvDocument  *document,
 
                }
 
-               document_display_page (pdf_document);
+               /* FIXME we need to regenerate pages */
        }
 }
 
@@ -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;
 }