From 028f106bee8602632435c78c1749370fbdd13780 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 27 Mar 2010 14:50:11 +0000 Subject: comment about flattenScalarReferences git-svn-id: svn+q:///qpdf/trunk@945 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/QPDFWriter.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libqpdf/QPDFWriter.cc') diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index 1a0e4dd2..f2f2605e 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -635,6 +635,8 @@ QPDFWriter::enqueueObject(QPDFObjectHandle object) } else if (object.isScalar()) { + // flattenScalarReferences is supposed to have removed all + // indirect scalars. throw std::logic_error( "INTERNAL ERROR: QPDFWriter::enqueueObject: indirect scalar: " + std::string(this->filename) + " " + @@ -715,6 +717,8 @@ QPDFWriter::unparseChild(QPDFObjectHandle child, int level, int flags) { if (child.isScalar()) { + // flattenScalarReferences is supposed to have removed all + // indirect scalars. throw std::logic_error( "INTERNAL ERROR: QPDFWriter::unparseChild: indirect scalar: " + QUtil::int_to_string(child.getObjectID()) + " " + -- cgit v1.2.3-54-g00ecf