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:
@ -522,6 +522,10 @@ QByteArray PDFFlateDecodeFilter::uncompress(const QByteArray& data)
|
|||||||
break; // No error, normal behaviour
|
break; // No error, normal behaviour
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
{
|
||||||
|
const bool ignoreError = error == Z_DATA_ERROR && errorMessage == "incorrect data check";
|
||||||
|
|
||||||
|
if (!ignoreError)
|
||||||
{
|
{
|
||||||
if (errorMessage.isEmpty())
|
if (errorMessage.isEmpty())
|
||||||
{
|
{
|
||||||
@ -531,6 +535,7 @@ QByteArray PDFFlateDecodeFilter::uncompress(const QByteArray& data)
|
|||||||
throw PDFException(PDFTranslationContext::tr("Error decompressing by flate method: %1").arg(errorMessage));
|
throw PDFException(PDFTranslationContext::tr("Error decompressing by flate method: %1").arg(errorMessage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user