aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjectHandle.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-12-21 19:50:02 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-12-31 15:27:19 +0100
commit0ca44ef84ce48a2916095f66c219d2b112ce31e8 (patch)
tree977c56a6779e21e9b736dfd20efa01330c437aae /libqpdf/QPDFObjectHandle.cc
parent383f5a007754f9ec83d70d58f5688aa002b5d01b (diff)
downloadqpdf-0ca44ef84ce48a2916095f66c219d2b112ce31e8.tar.zst
Fix QPDFObjectHandle::isScalar
Exclude uninitialized, destroyed and reserved objects.
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r--libqpdf/QPDFObjectHandle.cc5
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