Index: core/fpdfapi/fpdf_parser/cpdf_reference.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_reference.cpp b/core/fpdfapi/fpdf_parser/cpdf_reference.cpp |
index 007423e5fb247c6d138a9ae3395fd3aebfb38011..afda50c3248f0b7a92ac1ed4a00f27302bb85412 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_reference.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_reference.cpp |
@@ -63,5 +63,6 @@ void CPDF_Reference::SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) { |
} |
CPDF_Object* CPDF_Reference::GetDirect() const { |
- return m_pObjList ? m_pObjList->GetIndirectObject(m_RefObjNum) : nullptr; |
+ return m_pObjList ? m_pObjList->GetOrParseIndirectObject(m_RefObjNum) |
+ : nullptr; |
} |