Changeset 204
- Timestamp:
- 06/10/06 04:36:58 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
configure.ac (modified) (1 diff)
-
src/PDFDocument.cxx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r182 r204 40 40 AC_SUBST([POPPLER_CFLAGS]) 41 41 AC_SUBST([POPPLER_LIBS]) 42 dnl Check if we have poppler version 0.5.2 or higher. 43 PKG_CHECK_EXISTS([poppler-glib >= 0.5.2], [have_popppler_052=yes]) 44 if test "x$have_poppler_052" = "xyes"; then 45 AC_DEFINE([HAVE_POPPLER_0_5_2], [1], [Define to 1 if you have Poppler version 0.5.2 or higher.]) 46 fi 47 42 48 43 49 dnl CPPUnit library -
trunk/src/PDFDocument.cxx
r203 r204 86 86 { 87 87 PopplerActionGotoDest *actionGoTo = (PopplerActionGotoDest *)action; 88 int pageNum = 0;89 88 PopplerDest *destination = actionGoTo->dest; 89 int pageNum = destination->page_num; 90 #if defined (HAVE_POPPLER_0_5_2) 90 91 if ( POPPLER_DEST_NAMED == destination->type ) 91 92 { … … 99 100 } 100 101 } 101 else 102 { 103 pageNum = destination->page_num; 104 } 102 #endif // HAVE_POPPLER_0_5_2 105 103 106 104 documentLink = new DocumentLinkGoto ( … … 401 399 child->setTitle (actionGoTo->title); 402 400 PopplerDest *destination = actionGoTo->dest; 401 child->setDestination (destination->page_num); 402 #if defined (HAVE_POPPLER_0_5_2) 403 403 if ( POPPLER_DEST_NAMED == destination->type ) 404 404 { … … 413 413 } 414 414 } 415 else 416 { 417 child->setDestination (destination->page_num); 418 } 415 #endif // HAVE_POPPLER_0_5_2 419 416 420 417 outline->addChild (child);
