Ignore:
Timestamp:
Dec 27, 2011, 10:39:53 PM (10 years ago)
Author:
Silvan Scherrer
Message:

Lucide: updated fontconfig and poppler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/plugins/lupoppler/lupoppler.cpp

    r470 r497  
    719719    PopplerPage *page = &( document->pages[ pagenum ] );
    720720
    721     Object obj;
    722     Links *links = new Links( page->page->getAnnots( &obj ),
    723                             document->doc->getCatalog()->getBaseURI() );
    724     obj.free();
     721    Links *links = new Links( page->page->getAnnots(document->doc->getCatalog()) );
    725722
    726723    if ( links == NULL ) {  // No links, return empty LuLinkMapSequence
     
    741738    for ( int i = 0; i < len; i++ )
    742739    {
    743         Link *link = links->getLink( i );
     740        AnnotLink *link = links->getLink( i );
    744741        LinkAction *link_action = link->getAction();
    745742        build_link( document->doc, &(mapping->_buffer[ i ].link), NULL, link_action );
     
    14391436    for (int i = 0; i < doc->doc->getNumPages(); ++i) {
    14401437        Page *page = doc->pages[ i ].page;
    1441         FormPageWidgets *widgets = page->getPageWidgets();
     1438        FormPageWidgets *widgets = page->getFormWidgets(doc->doc->getCatalog());
    14421439        if (widgets == NULL || widgets->getNumWidgets() > 0)
    14431440            return TRUE;
     
    14531450    LuPopplerDocumentData *somThis = LuPopplerDocumentGetData(somSelf);
    14541451
    1455     Page *page = ((PopplerDocument *)somThis->data)->pages[ pagenum ].page;
    1456 
    1457     FormPageWidgets *widgets = page->getPageWidgets();
     1452    PopplerDocument *doc = (PopplerDocument *)somThis->data;
     1453    Page *page = doc->pages[ pagenum ].page;
     1454
     1455    FormPageWidgets *widgets = page->getFormWidgets(doc->doc->getCatalog());
    14581456
    14591457    LuDocument_LuInputFieldSequence *fields = (LuDocument_LuInputFieldSequence *)
Note: See TracChangeset for help on using the changeset viewer.