]> 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 65c2884fa5d0c2c85d0b5fa347a4d402b7bf6db6..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;
                }
 
@@ -1868,7 +1871,9 @@ pdf_selection_get_selected_text (EvSelection     *selection,
        r.y2 = height - points->y1;
 
        retval = poppler_page_get_text (poppler_page,
+#if 0
                                        (PopplerSelectionStyle)style,
+#endif
                                        &r);
 
        g_object_unref (poppler_page);
@@ -1891,7 +1896,9 @@ pdf_selection_get_selection_region (EvSelection     *selection,
 
        retval = poppler_page_get_selection_region ((PopplerPage *)rc->data,
                                                    rc->scale,
+#if 0
                                                    (PopplerSelectionStyle)style,
+#endif
                                                    (PopplerRectangle *) points);
        return retval;
 }
@@ -1913,7 +1920,9 @@ pdf_selection_get_selection_map (EvSelection     *selection,
        points.y1 = 0.0;
        poppler_page_get_size (poppler_page, &(points.x2), &(points.y2));
        retval = poppler_page_get_selection_region (poppler_page, 1.0,
+#if 0
                                                    POPPLER_SELECTION_GLYPH,
+#endif
                                                    &points);
        g_object_unref (poppler_page);