X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2Fpdf-document.cc;h=bfc5bf8a5a30c1d8dcce391154d06f67acb14f77;hb=6f7b6348dbaac85f6694242a08dd1374e16d317f;hp=777e94922c2c82f167ef9bb551c9ed2bf132a9dd;hpb=6d7f9e7cf7678b48828be0722ae2e998ce85b7a7;p=evince.git diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc index 777e9492..bfc5bf8a 100644 --- a/pdf/xpdf/pdf-document.cc +++ b/pdf/xpdf/pdf-document.cc @@ -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; }