X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fev-poppler.cc;h=414bfb453fcd350a49613755bb8393763de413c3;hb=fb9aea3630e9cc119b41e03aa431f9a694efd62e;hp=769c78a7a1f684973f1e3eaf0b1a742344e158f5;hpb=9f8ec2d921de1c31da212c8486ab2bda85d51bf9;p=evince.git diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 769c78a7..414bfb45 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -705,7 +705,7 @@ pdf_document_links_has_document_links (EvDocumentLinks *document_links) static EvLink * ev_link_from_dest (PopplerAction *action) { - EvLink *link; + EvLink *link = NULL; const char *unimplemented_dest = NULL; switch (action->goto_dest.dest->type) { @@ -747,7 +747,9 @@ ev_link_from_dest (PopplerAction *action) unimplemented_dest); } - link = ev_link_new_page (action->any.title, action->goto_dest.dest->page_num - 1); + if (link == NULL) { + link = ev_link_new_page (action->any.title, action->goto_dest.dest->page_num - 1); + } return link; }