mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #50: Fix of 00007.pdf
This commit is contained in:
@ -523,12 +523,17 @@ QByteArray PDFFlateDecodeFilter::uncompress(const QByteArray& data)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if (errorMessage.isEmpty())
|
const bool ignoreError = error == Z_DATA_ERROR && errorMessage == "incorrect data check";
|
||||||
{
|
|
||||||
errorMessage = PDFTranslationContext::tr("zlib code: %1").arg(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
throw PDFException(PDFTranslationContext::tr("Error decompressing by flate method: %1").arg(errorMessage));
|
if (!ignoreError)
|
||||||
|
{
|
||||||
|
if (errorMessage.isEmpty())
|
||||||
|
{
|
||||||
|
errorMessage = PDFTranslationContext::tr("zlib code: %1").arg(error);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw PDFException(PDFTranslationContext::tr("Error decompressing by flate method: %1").arg(errorMessage));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user