From b3e9c25c9bdbe47af1b79ab109c71382d6aa0e6d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 3 Sep 2007 13:11:14 +0000 Subject: [PATCH] Ignore outline items without a title. Fixes bug #453913. 2007-09-03 Carlos Garcia Campos * backend/pdf/ev-poppler.cc: (build_tree): Ignore outline items without a title. Fixes bug #453913. svn path=/trunk/; revision=2654 --- ChangeLog | 6 ++++++ backend/pdf/ev-poppler.cc | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9dedb5b9..1049eea2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-09-03 Carlos Garcia Campos + + * backend/pdf/ev-poppler.cc: (build_tree): + + Ignore outline items without a title. Fixes bug #453913. + 2007-09-03 Carlos Garcia Campos * shell/ev-view.c: (ev_view_handle_cursor_over_xy), diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index bb4d5c4c..1fa23543 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -1060,8 +1060,11 @@ build_tree (PdfDocument *pdf_document, break; } - if (!link) { + if (!link || strlen (ev_link_get_title (link)) <= 0) { poppler_action_free (action); + if (link) + g_object_unref (link); + continue; } -- 2.43.5