Commit 7f95ad5b92922167629919e2f3ef1f8b4b13a15f
Committed by
Jay Berkenbilt
1 parent
ffb96ee1
Fixed missing throw
Showing
1 changed file
with
3 additions
and
3 deletions
libqpdf/QPDF_pages.cc
| @@ -256,9 +256,9 @@ QPDF::findPage(int objid, int generation) | @@ -256,9 +256,9 @@ QPDF::findPage(int objid, int generation) | ||
| 256 | if (it == this->pageobj_to_pages_pos.end()) | 256 | if (it == this->pageobj_to_pages_pos.end()) |
| 257 | { | 257 | { |
| 258 | setLastObjectDescription("page object", objid, generation); | 258 | setLastObjectDescription("page object", objid, generation); |
| 259 | - QPDFExc(qpdf_e_pages, this->file->getName(), | ||
| 260 | - this->last_object_description, 0, | ||
| 261 | - "page object not referenced in /Pages tree"); | 259 | + throw QPDFExc(qpdf_e_pages, this->file->getName(), |
| 260 | + this->last_object_description, 0, | ||
| 261 | + "page object not referenced in /Pages tree"); | ||
| 262 | } | 262 | } |
| 263 | return (*it).second; | 263 | return (*it).second; |
| 264 | } | 264 | } |