diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-12-21 19:50:02 +0100 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-12-31 15:27:19 +0100 |
commit | 0ca44ef84ce48a2916095f66c219d2b112ce31e8 (patch) | |
tree | 977c56a6779e21e9b736dfd20efa01330c437aae /libqpdf | |
parent | 383f5a007754f9ec83d70d58f5688aa002b5d01b (diff) | |
download | qpdf-0ca44ef84ce48a2916095f66c219d2b112ce31e8.tar.zst |
Fix QPDFObjectHandle::isScalar
Exclude uninitialized, destroyed and reserved objects.
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 70305779..f86167b6 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -469,9 +469,8 @@ QPDFObjectHandle::isReserved() bool QPDFObjectHandle::isScalar() { - return ( - !(isArray() || isDictionary() || isStream() || isOperator() || - isInlineImage())); + return isBool() || isInteger() || isName() || isNull() || isReal() || + isString(); } bool |