Commit 9fd5ec0e authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid
Browse files

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
parent 141405e0
Pipeline #13695 passed with stage
in 14 minutes and 8 seconds
......@@ -311,7 +311,7 @@ bool PDFDoc::setup(const GooString *ownerPassword, const GooString *userPassword
// done
return true;
return xref->isOk();
PDFDoc::~PDFDoc() {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment