mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-23 03:18:59 +00:00
Store indirect nulls in QPDF_Dictionary
This commit is contained in:
parent
34491c612d
commit
6574dc5c03
@ -122,7 +122,9 @@ void
|
|||||||
QPDF_Dictionary::replaceKey(std::string const& key, QPDFObjectHandle value)
|
QPDF_Dictionary::replaceKey(std::string const& key, QPDFObjectHandle value)
|
||||||
{
|
{
|
||||||
if (value.isNull() && !value.isIndirect()) {
|
if (value.isNull() && !value.isIndirect()) {
|
||||||
// The PDF spec doesn't distinguish between keys with null values and missing keys.
|
// The PDF spec doesn't distinguish between keys with null values and missing keys. Allow
|
||||||
|
// indirect nulls which are equivalent to a dangling reference, which is permitted by the
|
||||||
|
// spec.
|
||||||
removeKey(key);
|
removeKey(key);
|
||||||
} else {
|
} else {
|
||||||
// add or replace value
|
// add or replace value
|
||||||
|
Loading…
Reference in New Issue
Block a user