From 7f95ad5b92922167629919e2f3ef1f8b4b13a15f Mon Sep 17 00:00:00 2001 From: Tobias Hoffmann Date: Fri, 22 Jun 2012 22:25:29 +0200 Subject: [PATCH] Fixed missing throw --- libqpdf/QPDF_pages.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libqpdf/QPDF_pages.cc b/libqpdf/QPDF_pages.cc index 89f5f195..3c94d428 100644 --- a/libqpdf/QPDF_pages.cc +++ b/libqpdf/QPDF_pages.cc @@ -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; }