aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/QPDFObject.cc9
-rw-r--r--libqpdf/QPDFObjectHandle.cc4
2 files changed, 10 insertions, 3 deletions
diff --git a/libqpdf/QPDFObject.cc b/libqpdf/QPDFObject.cc
index 8df2b480..8b538021 100644
--- a/libqpdf/QPDFObject.cc
+++ b/libqpdf/QPDFObject.cc
@@ -1 +1,10 @@
#include <qpdf/QPDFObject.hh>
+
+#include <qpdf/QPDF.hh>
+
+void
+QPDFObject::doResolve()
+{
+ auto og = value->og;
+ QPDF::Resolver::resolve(value->qpdf, og);
+}
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 8a38352f..c55506a5 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -2595,9 +2595,7 @@ QPDFObjectHandle::dereference()
if (!isInitialized()) {
return false;
}
- if (this->obj->isUnresolved()) {
- QPDF::Resolver::resolve(this->qpdf, getObjGen());
- }
+ this->obj->resolve();
return true;
}