diff -Naur libreoffice-24.8.3.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx libreoffice-24.8.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
old
|
new
|
|
1090 | 1090 | |
1091 | 1091 | int bitsPerComponent = 1; |
1092 | 1092 | StreamColorSpaceMode csMode = streamCSNone; |
1093 | | str->getImageParams( &bitsPerComponent, &csMode ); |
| 1093 | bool hasAlpha = false; |
| 1094 | str->getImageParams( &bitsPerComponent, &csMode, &hasAlpha ); |
1094 | 1095 | if( bitsPerComponent == 1 && (csMode == streamCSNone || csMode == streamCSDeviceGray) ) |
1095 | 1096 | { |
1096 | 1097 | GfxRGB oneColor = { dblToCol( 1.0 ), dblToCol( 1.0 ), dblToCol( 1.0 ) }; |
… |
… |
|
1306 | 1307 | 0, nBitmapWidth * nBitmapHeight, Object(objNull))); |
1307 | 1308 | auto aDecode = Object(objNull); |
1308 | 1309 | std::unique_ptr<GfxImageColorMap> pRgbIdentityColorMap(new GfxImageColorMap(8, &aDecode, |
1309 | | new GfxDeviceRGBColorSpace())); |
| 1310 | std::make_unique<GfxDeviceRGBColorSpace>())); |
1310 | 1311 | std::unique_ptr<GfxImageColorMap> pGrayIdentityColorMap(new GfxImageColorMap(8, &aDecode, |
1311 | | new GfxDeviceGrayColorSpace())); |
| 1312 | std::make_unique<GfxDeviceGrayColorSpace>())); |
1312 | 1313 | |
1313 | 1314 | OutputBuffer aBuf; initBuf(aBuf); |
1314 | 1315 | writePng_(aBuf, pRgbStr.get(), nBitmapWidth, nBitmapHeight, pRgbIdentityColorMap.get(), |