Commit 028f106bee8602632435c78c1749370fbdd13780
1 parent
95114fe2
comment about flattenScalarReferences
git-svn-id: svn+q:///qpdf/trunk@945 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
1 changed file
with
4 additions
and
0 deletions
libqpdf/QPDFWriter.cc
| ... | ... | @@ -635,6 +635,8 @@ QPDFWriter::enqueueObject(QPDFObjectHandle object) |
| 635 | 635 | } |
| 636 | 636 | else if (object.isScalar()) |
| 637 | 637 | { |
| 638 | + // flattenScalarReferences is supposed to have removed all | |
| 639 | + // indirect scalars. | |
| 638 | 640 | throw std::logic_error( |
| 639 | 641 | "INTERNAL ERROR: QPDFWriter::enqueueObject: indirect scalar: " + |
| 640 | 642 | std::string(this->filename) + " " + |
| ... | ... | @@ -715,6 +717,8 @@ QPDFWriter::unparseChild(QPDFObjectHandle child, int level, int flags) |
| 715 | 717 | { |
| 716 | 718 | if (child.isScalar()) |
| 717 | 719 | { |
| 720 | + // flattenScalarReferences is supposed to have removed all | |
| 721 | + // indirect scalars. | |
| 718 | 722 | throw std::logic_error( |
| 719 | 723 | "INTERNAL ERROR: QPDFWriter::unparseChild: indirect scalar: " + |
| 720 | 724 | QUtil::int_to_string(child.getObjectID()) + " " + | ... | ... |