Changeset 286
- Timestamp:
- 10/08/07 07:52:56 (12 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
configure.ac (modified) (1 diff)
-
src/PDFDocument.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r267 r286 45 45 AC_DEFINE([HAVE_POPPLER_0_5_2], [1], [Define to 1 if you have Poppler version 0.5.2 or higher.]) 46 46 fi 47 PKG_CHECK_EXISTS([poppler-glib >= 0.6.0], [have_poppler_060=yes]) 48 if test "x$have_poppler_060" = "xyes"; then 49 AC_DEFINE([HAVE_POPPLER_0_6_0], [1], [Define to 1 if you have Poppler version 0.6.0 or higher.]) 50 fi 47 51 48 52 EPDFVIEW_PATH_CUPS([CUPS], [have_cups=yes]) -
trunk/src/PDFDocument.cxx
r279 r286 686 686 repairEmpty(textRect); 687 687 688 #if defined (HAVE_POPPLER_0_6_0) 689 gchar *text = poppler_page_get_text(page, POPPLER_SELECTION_GLYPH, 690 &textRect); 691 #else // !HAVE_POPPLER_0_6_0 688 692 gchar *text = poppler_page_get_text(page, &textRect); 693 #endif // HAVE_POPPLER_0_6_0 689 694 if(!text) 690 695 goto cleanup; … … 722 727 723 728 //calc selection size 729 #if defined (HAVE_POPPLER_0_6_0) 730 res = poppler_page_get_selection_region(page, getZoom(), 731 POPPLER_SELECTION_GLYPH, &rect); 732 #else // !HAVE_POPPLER_0_6_0 724 733 res = poppler_page_get_selection_region(page, getZoom(), &rect); 734 #endif // HAVE_POPPLER_0_6_0 725 735 726 736 //free some local data
