diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-05-14 08:38:49 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-05-14 08:38:49 (GMT) |
commit | 07330833c7e90d6b82f4dca2d4840547a25afe4c (patch) | |
tree | a16dc65bda394c7a31b4305d097e164b52b7cf33 /backend | |
parent | 6d6a66984b5f4467b02fe6b8f6d4370750f291cb (diff) |
[pdf] Fix build with poppler without cairo support
Fixes bug #582543
Diffstat (limited to 'backend')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 38ab1d5..a9a0a85 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -1236,10 +1236,11 @@ GdkPixbuf * pdf_document_images_get_image (EvDocumentImages *document_images, EvImage *image) { + GdkPixbuf *retval = NULL; +#ifdef HAVE_POPPLER_PAGE_GET_IMAGE PdfDocument *pdf_document; PopplerPage *poppler_page; cairo_surface_t *surface; - GdkPixbuf *retval = NULL; pdf_document = PDF_DOCUMENT (document_images); poppler_page = poppler_document_get_page (pdf_document->document, @@ -1252,7 +1253,7 @@ pdf_document_images_get_image (EvDocumentImages *document_images, } g_object_unref (poppler_page); - +#endif return retval; } |