From 6f7b6348dbaac85f6694242a08dd1374e16d317f Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 24 Feb 2005 16:59:04 +0000 Subject: Return a link even if it's of an unrecognized type. Otherwise we go in an 2005-02-24 Marco Pesenti Gritti * pdf/xpdf/pdf-document.cc: Return a link even if it's of an unrecognized type. Otherwise we go in an infinte cycle. --- (limited to 'pdf') 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; } -- cgit v0.9.1