PdfProcessor: Exception instead of empty result when loading of document fails

Tento commit je obsažen v:
Albert S. 2019-04-06 23:27:39 +02:00
rodič b717587d26
revize 4925299b9d

Zobrazit soubor

@ -11,7 +11,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;