PdfProcessor: Exception instead of empty result when loading of document fails
Tento commit je obsažen v:
rodič
8797139ae6
revize
2feb420bb6
@ -13,7 +13,7 @@ QVector<PageData> PdfProcessor::process(const QByteArray &data) const
|
||||
QScopedPointer<Poppler::Document> doc(Poppler::Document::loadFromData(data));
|
||||
if(doc.isNull())
|
||||
{
|
||||
return { };
|
||||
throw QSSGeneralException("Failed to process pdf data");
|
||||
}
|
||||
QRectF entirePage;
|
||||
|
||||
|
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele