Show
Ignore:
Timestamp:
10/08/07 07:52:56 (14 months ago)
Author:
jordi
Message:

Based on a patch sent by Alex Dedul it is not possible to compile ePDFView with poppler version 0.6.0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/PDFDocument.cxx

    r279 r286  
    686686    repairEmpty(textRect); 
    687687 
     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 
    688692    gchar *text = poppler_page_get_text(page, &textRect); 
     693#endif // HAVE_POPPLER_0_6_0 
    689694    if(!text) 
    690695        goto cleanup; 
     
    722727 
    723728    //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 
    724733    res = poppler_page_get_selection_region(page, getZoom(), &rect); 
     734#endif // HAVE_POPPLER_0_6_0 
    725735                              
    726736    //free some local data