diff options
author | Jay Berkenbilt <ejb@ql.org> | 2010-03-27 15:50:11 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2010-03-27 15:50:11 +0100 |
commit | 028f106bee8602632435c78c1749370fbdd13780 (patch) | |
tree | 024606488637635d463319c422d94e632d661a05 /libqpdf | |
parent | 95114fe256290ecd251c7b4b7b1d494873c743e6 (diff) | |
download | qpdf-028f106bee8602632435c78c1749370fbdd13780.tar.zst |
comment about flattenScalarReferences
git-svn-id: svn+q:///qpdf/trunk@945 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFWriter.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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()) + " " + |