Ticket #22617: libreoffice-25.8.4.2-poppler_26.01-1.patch

File libreoffice-25.8.4.2-poppler_26.01-1.patch, 3.1 KB (added by martyj19, 9 months ago)

Adjust libreoffice for rename of reset() to rewind()

  • sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx

    diff -Naur libreoffice-25.8.4.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx libreoffice-25.8.4.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
    old new  
    232232    str = ((DCTStream *)str)->getRawStream();
    233233#endif
    234234#if POPPLER_CHECK_VERSION(25, 2, 0)
    235     if (!str->reset())
     235    if (!str->rewind())
    236236        return;
    237237#else
    238     str->reset();
     238    str->rewind();
    239239#endif
    240240
    241241    o_rOutputBuf.clear();
    … …  
    273273
    274274    // initialize stream
    275275#if POPPLER_CHECK_VERSION(25, 2, 0)
    276     if (!str->reset())
     276    if (!str->rewind())
    277277        return;
    278278#else
    279     str->reset();
     279    str->rewind();
    280280#endif
    281281
    282282    // copy the raw stream
    … …  
    335335                        colorMap->getNumPixelComps(),
    336336                        colorMap->getBits()));
    337337#if POPPLER_CHECK_VERSION(25, 2, 0)
    338     if (!imgStr->reset())
     338    if (!imgStr->rewind())
    339339        return;
    340340#else
    341     imgStr->reset();
     341    imgStr->rewind();
    342342#endif
    343343
    344344    for( int y=0; y<height; ++y)
  • sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx

    diff -Naur libreoffice-25.8.4.2.orig/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx libreoffice-25.8.4.2/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
    old new  
    215215    aScanlines.reserve( nLineSize * height + height );
    216216
    217217#if POPPLER_CHECK_VERSION(25, 2, 0)
    218     if (!str->reset())
     218    if (!str->rewind())
    219219        return;
    220220#else
    221     str->reset();
     221    str->rewind();
    222222#endif
    223223    for( int y = 0; y < height; y++ )
    224224    {
    … …  
    258258                        colorMap->getNumPixelComps(),
    259259                        colorMap->getBits()));
    260260#if POPPLER_CHECK_VERSION(25, 2, 0)
    261     if (!imgStr->reset())
     261    if (!imgStr->rewind())
    262262        return;
    263263#else
    264     imgStr->reset();
     264    imgStr->rewind();
    265265#endif
    266266
    267267    // create scan line data buffer
    … …  
    300300                        maskColorMap->getBits()));
    301301
    302302#if POPPLER_CHECK_VERSION(25, 2, 0)
    303     if (!imgStrMask->reset())
     303    if (!imgStrMask->rewind())
    304304        return;
    305305#else
    306     imgStrMask->reset();
     306    imgStrMask->rewind();
    307307#endif
    308308
    309309    for( int y = 0; y < maskHeight; ++y )
    … …  
    354354                        colorMap->getNumPixelComps(),
    355355                        colorMap->getBits()));
    356356#if POPPLER_CHECK_VERSION(25, 2, 0)
    357     if (!imgStr->reset())
     357    if (!imgStr->rewind())
    358358        return;
    359359#else
    360     imgStr->reset();
     360    imgStr->rewind();
    361361#endif
    362362
    363363    // create scan line data buffer
    … …  
    393393        new ImageStream(maskStr, maskWidth, 1, 1));
    394394
    395395#if POPPLER_CHECK_VERSION(25, 2, 0)
    396     if (!imgStrMask->reset())
     396    if (!imgStrMask->rewind())
    397397        return;
    398398#else
    399     imgStrMask->reset();
     399    imgStrMask->rewind();
    400400#endif
    401401
    402402    for( int y = 0; y < maskHeight; ++y )