From f989de1bd7b21f4782dd46decd2c63ac4b024705 Mon Sep 17 00:00:00 2001 From: m-holger Date: Wed, 15 Feb 2023 11:07:37 +0000 Subject: [PATCH] Remove restriction that only owned objects can have descriptions --- libqpdf/qpdf/QPDFValue.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libqpdf/qpdf/QPDFValue.hh b/libqpdf/qpdf/QPDFValue.hh index eef088f9..e7904253 100644 --- a/libqpdf/qpdf/QPDFValue.hh +++ b/libqpdf/qpdf/QPDFValue.hh @@ -52,8 +52,7 @@ class QPDFValue bool hasDescription() { - return qpdf != nullptr && object_description && - !getDescription().empty(); + return object_description != nullptr; } void setParsedOffset(qpdf_offset_t offset)