mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-31 02:48:31 +00:00
Store indirect nulls in QPDF_Dictionary
This commit is contained in:
parent
fedd42191f
commit
34491c612d
@ -121,7 +121,7 @@ QPDF_Dictionary::getAsMap() const
|
||||
void
|
||||
QPDF_Dictionary::replaceKey(std::string const& key, QPDFObjectHandle value)
|
||||
{
|
||||
if (value.isNull()) {
|
||||
if (value.isNull() && !value.isIndirect()) {
|
||||
// The PDF spec doesn't distinguish between keys with null values and missing keys.
|
||||
removeKey(key);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user