]> www.fi.muni.cz Git - evince.git/commitdiff
[pdf] Fix build when text_layout is not available
authorCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 29 Jun 2010 06:52:13 +0000 (08:52 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 29 Jun 2010 06:52:13 +0000 (08:52 +0200)
Fixes bug #623080.

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)