]> www.fi.muni.cz Git - evince.git/blobdiff - backend/pdf/ev-poppler.cc
Fix build with poppler < 0.5.9.
[evince.git] / backend / pdf / ev-poppler.cc
index 375489f5903815c660a8b94099230fca90178a42..8f21312f864eda61648b0a15746aea3003b353e4 100644 (file)
@@ -1623,13 +1623,23 @@ pdf_selection_render_selection (EvSelection      *selection,
                                           TRUE, 8,
                                           width, height);
        }
-       
+
+#if POPPLER_VERSION <= 5
        poppler_page_render_selection (POPPLER_PAGE (rc->data),
                                       rc->scale, rc->rotation, *pixbuf,
                                       (PopplerRectangle *)points,
                                       (PopplerRectangle *)old_points,
                                       text,
                                       base);
+#else /* POPPLER_VERSION == 9 */
+       poppler_page_render_selection_to_pixbuf (POPPLER_PAGE (rc->data),
+                                                rc->scale, rc->rotation, *pixbuf,
+                                                (PopplerRectangle *)points,
+                                                (PopplerRectangle *)old_points,
+                                                POPPLER_SELECTION_NORMAL,
+                                                text,
+                                                base);
+#endif
 }