2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-31 01:10:51 +00:00

Fixed missing throw

This commit is contained in:
Tobias Hoffmann 2012-06-22 22:25:29 +02:00 committed by Jay Berkenbilt
parent ffb96ee17e
commit 7f95ad5b92

View File

@ -256,9 +256,9 @@ QPDF::findPage(int objid, int generation)
if (it == this->pageobj_to_pages_pos.end())
{
setLastObjectDescription("page object", objid, generation);
QPDFExc(qpdf_e_pages, this->file->getName(),
this->last_object_description, 0,
"page object not referenced in /Pages tree");
throw QPDFExc(qpdf_e_pages, this->file->getName(),
this->last_object_description, 0,
"page object not referenced in /Pages tree");
}
return (*it).second;
}