JBIG2 - bugfixing

This commit is contained in:
Jakub Melka
2019-11-03 14:56:56 +01:00
parent ab10a6923e
commit 0b507c2610
4 changed files with 10 additions and 4 deletions

View File

@@ -670,6 +670,7 @@ PDFImage PDFImage::createImage(const PDFDocument* document,
PDFJBIG2Decoder decoder(qMove(data), qMove(globalData), errorReporter);
image.m_imageData = decoder.decode(maskingType);
image.m_imageData.setDecode(!decode.empty() ? qMove(decode) : std::vector<PDFReal>({ 0.0, 1.0 }));
}
else if (colorSpace || isSoftMask)
{