]> www.fi.muni.cz Git - evince.git/blobdiff - backend/pdf/ev-poppler.cc
Do not jump to the first page when reloading a document from the last
[evince.git] / backend / pdf / ev-poppler.cc
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;
                }