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

Šī revīzija ir iekļauta:
Albert S. 2019-04-06 23:27:39 +02:00
vecāks 8797139ae6
revīzija 2feb420bb6

Parādīt failu

@ -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;