| Index: core/fpdfapi/parser/cpdf_data_avail.cpp
|
| diff --git a/core/fpdfapi/parser/cpdf_data_avail.cpp b/core/fpdfapi/parser/cpdf_data_avail.cpp
|
| index e52d0611f973867ac99cda381837d1872df6f787..e23aa8ecfbd6bc063d11c1be8c70ed17211884ce 100644
|
| --- a/core/fpdfapi/parser/cpdf_data_avail.cpp
|
| +++ b/core/fpdfapi/parser/cpdf_data_avail.cpp
|
| @@ -1625,8 +1625,6 @@
|
| nResult = m_pHintTables->CheckPage(dwPage, pHints);
|
| if (nResult != DataAvailable)
|
| return nResult;
|
| - // We should say to the document, which object is the page.
|
| - m_pDocument->SetPageObjNum(dwPage, GetPage(dwPage)->GetObjNum());
|
| m_pagesLoadState.insert(dwPage);
|
| return DataAvailable;
|
| }
|
| @@ -1765,18 +1763,11 @@
|
| uint32_t dwObjNum = 0;
|
| bool bPagePosGot = m_pHintTables->GetPagePos(index, &szPageStartPos,
|
| &szPageLength, &dwObjNum);
|
| - if (!dwObjNum)
|
| - return nullptr;
|
| - // Page object already can be parsed in document.
|
| - CPDF_Object* pPageDict = m_pDocument->GetIndirectObject(dwObjNum);
|
| - if (pPageDict)
|
| - return pPageDict->GetDict();
|
| -
|
| if (!bPagePosGot)
|
| return nullptr;
|
|
|
| m_syntaxParser.InitParser(m_pFileRead, (uint32_t)szPageStartPos);
|
| - pPageDict = ParseIndirectObjectAt(0, dwObjNum, m_pDocument);
|
| + CPDF_Object* pPageDict = ParseIndirectObjectAt(0, dwObjNum, m_pDocument);
|
| if (!pPageDict)
|
| return nullptr;
|
|
|
|
|