mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-17 10:05:09 +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())
|
else if (object.isScalar())
|
||||||
{
|
{
|
||||||
|
// flattenScalarReferences is supposed to have removed all
|
||||||
|
// indirect scalars.
|
||||||
throw std::logic_error(
|
throw std::logic_error(
|
||||||
"INTERNAL ERROR: QPDFWriter::enqueueObject: indirect scalar: " +
|
"INTERNAL ERROR: QPDFWriter::enqueueObject: indirect scalar: " +
|
||||||
std::string(this->filename) + " " +
|
std::string(this->filename) + " " +
|
||||||
@ -715,6 +717,8 @@ QPDFWriter::unparseChild(QPDFObjectHandle child, int level, int flags)
|
|||||||
{
|
{
|
||||||
if (child.isScalar())
|
if (child.isScalar())
|
||||||
{
|
{
|
||||||
|
// flattenScalarReferences is supposed to have removed all
|
||||||
|
// indirect scalars.
|
||||||
throw std::logic_error(
|
throw std::logic_error(
|
||||||
"INTERNAL ERROR: QPDFWriter::unparseChild: indirect scalar: " +
|
"INTERNAL ERROR: QPDFWriter::unparseChild: indirect scalar: " +
|
||||||
QUtil::int_to_string(child.getObjectID()) + " " +
|
QUtil::int_to_string(child.getObjectID()) + " " +
|
||||||
|
Loading…
Reference in New Issue
Block a user