2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-23 07:08:30 +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()) if (it == this->pageobj_to_pages_pos.end())
{ {
setLastObjectDescription("page object", objid, generation); setLastObjectDescription("page object", objid, generation);
QPDFExc(qpdf_e_pages, this->file->getName(), throw QPDFExc(qpdf_e_pages, this->file->getName(),
this->last_object_description, 0, this->last_object_description, 0,
"page object not referenced in /Pages tree"); "page object not referenced in /Pages tree");
} }
return (*it).second; return (*it).second;
} }