PdfProcessor: Exception instead of empty result when loading of document fails
This commit is contained in:
parent
b717587d26
commit
4925299b9d
@ -11,7 +11,7 @@ QVector<PageData> PdfProcessor::process(const QByteArray &data) const
|
|||||||
QScopedPointer<Poppler::Document> doc(Poppler::Document::loadFromData(data));
|
QScopedPointer<Poppler::Document> doc(Poppler::Document::loadFromData(data));
|
||||||
if(doc.isNull())
|
if(doc.isNull())
|
||||||
{
|
{
|
||||||
return {};
|
throw QSSGeneralException("Failed to process pdf data");
|
||||||
}
|
}
|
||||||
QRectF entirePage;
|
QRectF entirePage;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user