summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_pages.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-06-25 18:30:01 +0200
committerJay Berkenbilt <ejb@ql.org>2019-06-25 18:43:06 +0200
commit4db1de97cea9dfab3f3abe43766053ba0d594610 (patch)
tree61ead5970dc0e3d57af683caad664d084e2715ea /libqpdf/QPDF_pages.cc
parent201e8798d75c34498a39c31a7e2c73433bb6a8d8 (diff)
downloadqpdf-4db1de97cea9dfab3f3abe43766053ba0d594610.tar.zst
Convert some cases of logic_error to runtime_error
There were a few cases that could be caused by invalid input rather than bugs in the code which were throwing logic_error instead of runtime_error.
Diffstat (limited to 'libqpdf/QPDF_pages.cc')
-rw-r--r--libqpdf/QPDF_pages.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_pages.cc b/libqpdf/QPDF_pages.cc
index fe23e850..d95002a6 100644
--- a/libqpdf/QPDF_pages.cc
+++ b/libqpdf/QPDF_pages.cc
@@ -166,7 +166,7 @@ QPDF::flattenPagesTree()
// /Count has not changed
if (pages.getKey("/Count").getUIntValue() != len)
{
- throw std::logic_error("/Count is wrong after flattening pages tree");
+ throw std::runtime_error("/Count is wrong after flattening pages tree");
}
}