commit | 9fd5ec0e6e5f763b190f2a55ceb5427cfe851d5f | [log] [tgz] |
---|---|---|
author | Albert Astals Cid <aacid@kde.org> | Mon Dec 31 11:47:57 2018 +0100 |
committer | Albert Astals Cid <tsdgeos@yahoo.es> | Wed Jan 02 14:00:18 2019 +0000 |
tree | 06a12b0a3dc7bd1329f257817362ae87ce6252ca | |
parent | 141405e0cc6aead0f2eed83f2f5834afa2b0dbe9 [diff] |
PDFDoc::setup: Fix return value At that point xref can have gone wrong since extractPDFSubtype() can have caused a reconstruct that broke stuff so instead of unconditionally returning true, return xref->isOk() Fixes #706
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index 351bd2e..9213f56 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc
@@ -311,7 +311,7 @@ extractPDFSubtype(); // done - return true; + return xref->isOk(); } PDFDoc::~PDFDoc() {