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:
parent
ffb96ee17e
commit
7f95ad5b92
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user