[evince] Fix GCC error



commit f441290f0b3266530a18f8deebd1b826833d9238
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jun 11 11:25:11 2012 -0400

    Fix GCC error
    
    In case we don't have a recent enough poppler, return the enum value
    instead of zero, or GCC will complain about immplcitly casting an int to
    an enum.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677867

 backend/pdf/ev-poppler.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 7c0c11d..6f29caa 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1627,7 +1627,7 @@ pdf_document_find_get_supported_options (EvDocumentFind *document_find)
 #ifdef HAVE_POPPLER_PAGE_FIND_TEXT_WITH_OPTIONS
 	return (EvFindOptions)(EV_FIND_CASE_SENSITIVE | EV_FIND_WHOLE_WORDS_ONLY);
 #else
-	return 0;
+	return EV_FIND_DEFAULT;
 #endif
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]