Commit e7dcbe93ca7e0a50a04212296093ca756cfd5ee3

Authored by m-holger
1 parent 718b1400

In QPDFWriter::generateID change empty deterministic_id_data to a

runtime error
Showing 1 changed file with 1 additions and 1 deletions
libqpdf/QPDFWriter.cc
... ... @@ -1876,7 +1876,7 @@ QPDFWriter::generateID()
1876 1876 if (m->deterministic_id) {
1877 1877 if (m->deterministic_id_data.empty()) {
1878 1878 QTC::TC("qpdf", "QPDFWriter deterministic with no data");
1879   - throw std::logic_error("INTERNAL ERROR: QPDFWriter::generateID has no data for "
  1879 + throw std::runtime_error("INTERNAL ERROR: QPDFWriter::generateID has no data for "
1880 1880 "deterministic ID. This may happen if deterministic ID and "
1881 1881 "file encryption are requested together.");
1882 1882 }
... ...