]> www.fi.muni.cz Git - evince.git/commitdiff
Ignore outline items without a title. Fixes bug #453913.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 3 Sep 2007 13:11:14 +0000 (13:11 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 3 Sep 2007 13:11:14 +0000 (13:11 +0000)
2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
* backend/pdf/ev-poppler.cc: (build_tree):
Ignore outline items without a title. Fixes bug #453913.

svn path=/trunk/; revision=2654

ChangeLog
backend/pdf/ev-poppler.cc

index 9dedb5b900630f7e137376a005cd0926e885b77c..1049eea2f0961694881d47cd6139b8d0dee19b93 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * backend/pdf/ev-poppler.cc: (build_tree):
+
+       Ignore outline items without a title. Fixes bug #453913.
+       
 2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-view.c: (ev_view_handle_cursor_over_xy),
index bb4d5c4c1ca019d78225cc6c1d9b709ec2dead32..1fa235431dd7f05c92c07b7b416f6f5fddb75438 100644 (file)
@@ -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;
                }