diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index 0cc0547d..22928372 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -2311,7 +2311,7 @@ QPDFWriter::generateObjectStreams() unsigned int n_object_streams = (eligible.size() + 99) / 100; if (n_object_streams == 0) { - throw std::logic_error("n_object_streams == 0"); + return; } unsigned int n_per = eligible.size() / n_object_streams; if (n_per * n_object_streams < eligible.size())