]> www.fi.muni.cz Git - evince.git/blobdiff - backend/pdf/ev-poppler.cc
[pdf] Fix build when text_layout is not available
[evince.git] / backend / pdf / ev-poppler.cc
index 91f5c2e66156cc2581080732567882bb3b0d38f6..6e56423692a5ffc9cf6f4904d409a9bbcf94dd9b 100644 (file)
@@ -2029,6 +2029,7 @@ pdf_document_text_get_text (EvDocumentText  *selection,
                                      &r);
 }
 
+#ifdef HAVE_POPPLER_PAGE_GET_TEXT_LAYOUT
 static gboolean
 pdf_document_text_get_text_layout (EvDocumentText  *selection,
                                   EvPage          *page,
@@ -2043,6 +2044,7 @@ pdf_document_text_get_text_layout (EvDocumentText  *selection,
 
        return poppler_page_get_text_layout (poppler_page, (PopplerRectangle **)areas, n_areas);
 }
+#endif
 
 static void
 pdf_document_text_iface_init (EvDocumentTextInterface *iface)