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,6 +635,8 @@ QPDFWriter::enqueueObject(QPDFObjectHandle object) | ||
| 635 | } | 635 | } |
| 636 | else if (object.isScalar()) | 636 | else if (object.isScalar()) |
| 637 | { | 637 | { |
| 638 | + // flattenScalarReferences is supposed to have removed all | ||
| 639 | + // indirect scalars. | ||
| 638 | throw std::logic_error( | 640 | throw std::logic_error( |
| 639 | "INTERNAL ERROR: QPDFWriter::enqueueObject: indirect scalar: " + | 641 | "INTERNAL ERROR: QPDFWriter::enqueueObject: indirect scalar: " + |
| 640 | std::string(this->filename) + " " + | 642 | std::string(this->filename) + " " + |
| @@ -715,6 +717,8 @@ QPDFWriter::unparseChild(QPDFObjectHandle child, int level, int flags) | @@ -715,6 +717,8 @@ QPDFWriter::unparseChild(QPDFObjectHandle child, int level, int flags) | ||
| 715 | { | 717 | { |
| 716 | if (child.isScalar()) | 718 | if (child.isScalar()) |
| 717 | { | 719 | { |
| 720 | + // flattenScalarReferences is supposed to have removed all | ||
| 721 | + // indirect scalars. | ||
| 718 | throw std::logic_error( | 722 | throw std::logic_error( |
| 719 | "INTERNAL ERROR: QPDFWriter::unparseChild: indirect scalar: " + | 723 | "INTERNAL ERROR: QPDFWriter::unparseChild: indirect scalar: " + |
| 720 | QUtil::int_to_string(child.getObjectID()) + " " + | 724 | QUtil::int_to_string(child.getObjectID()) + " " + |