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
|
|
| 232 | 232 | str = ((DCTStream *)str)->getRawStream(); |
| 233 | 233 | #endif |
| 234 | 234 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 235 | | if (!str->reset()) |
| | 235 | if (!str->rewind()) |
| 236 | 236 | return; |
| 237 | 237 | #else |
| 238 | | str->reset(); |
| | 238 | str->rewind(); |
| 239 | 239 | #endif |
| 240 | 240 | |
| 241 | 241 | o_rOutputBuf.clear(); |
| … |
… |
|
| 273 | 273 | |
| 274 | 274 | // initialize stream |
| 275 | 275 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 276 | | if (!str->reset()) |
| | 276 | if (!str->rewind()) |
| 277 | 277 | return; |
| 278 | 278 | #else |
| 279 | | str->reset(); |
| | 279 | str->rewind(); |
| 280 | 280 | #endif |
| 281 | 281 | |
| 282 | 282 | // copy the raw stream |
| … |
… |
|
| 335 | 335 | colorMap->getNumPixelComps(), |
| 336 | 336 | colorMap->getBits())); |
| 337 | 337 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 338 | | if (!imgStr->reset()) |
| | 338 | if (!imgStr->rewind()) |
| 339 | 339 | return; |
| 340 | 340 | #else |
| 341 | | imgStr->reset(); |
| | 341 | imgStr->rewind(); |
| 342 | 342 | #endif |
| 343 | 343 | |
| 344 | 344 | for( int y=0; y<height; ++y) |
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
|
|
| 215 | 215 | aScanlines.reserve( nLineSize * height + height ); |
| 216 | 216 | |
| 217 | 217 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 218 | | if (!str->reset()) |
| | 218 | if (!str->rewind()) |
| 219 | 219 | return; |
| 220 | 220 | #else |
| 221 | | str->reset(); |
| | 221 | str->rewind(); |
| 222 | 222 | #endif |
| 223 | 223 | for( int y = 0; y < height; y++ ) |
| 224 | 224 | { |
| … |
… |
|
| 258 | 258 | colorMap->getNumPixelComps(), |
| 259 | 259 | colorMap->getBits())); |
| 260 | 260 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 261 | | if (!imgStr->reset()) |
| | 261 | if (!imgStr->rewind()) |
| 262 | 262 | return; |
| 263 | 263 | #else |
| 264 | | imgStr->reset(); |
| | 264 | imgStr->rewind(); |
| 265 | 265 | #endif |
| 266 | 266 | |
| 267 | 267 | // create scan line data buffer |
| … |
… |
|
| 300 | 300 | maskColorMap->getBits())); |
| 301 | 301 | |
| 302 | 302 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 303 | | if (!imgStrMask->reset()) |
| | 303 | if (!imgStrMask->rewind()) |
| 304 | 304 | return; |
| 305 | 305 | #else |
| 306 | | imgStrMask->reset(); |
| | 306 | imgStrMask->rewind(); |
| 307 | 307 | #endif |
| 308 | 308 | |
| 309 | 309 | for( int y = 0; y < maskHeight; ++y ) |
| … |
… |
|
| 354 | 354 | colorMap->getNumPixelComps(), |
| 355 | 355 | colorMap->getBits())); |
| 356 | 356 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 357 | | if (!imgStr->reset()) |
| | 357 | if (!imgStr->rewind()) |
| 358 | 358 | return; |
| 359 | 359 | #else |
| 360 | | imgStr->reset(); |
| | 360 | imgStr->rewind(); |
| 361 | 361 | #endif |
| 362 | 362 | |
| 363 | 363 | // create scan line data buffer |
| … |
… |
|
| 393 | 393 | new ImageStream(maskStr, maskWidth, 1, 1)); |
| 394 | 394 | |
| 395 | 395 | #if POPPLER_CHECK_VERSION(25, 2, 0) |
| 396 | | if (!imgStrMask->reset()) |
| | 396 | if (!imgStrMask->rewind()) |
| 397 | 397 | return; |
| 398 | 398 | #else |
| 399 | | imgStrMask->reset(); |
| | 399 | imgStrMask->rewind(); |
| 400 | 400 | #endif |
| 401 | 401 | |
| 402 | 402 | for( int y = 0; y < maskHeight; ++y ) |