mirror of
https://github.com/qpdf/qpdf.git
synced 2025-02-02 11:58:25 +00:00
comment about flattenScalarReferences
git-svn-id: svn+q:///qpdf/trunk@945 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
parent
95114fe256
commit
028f106bee
@ -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()) + " " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user