summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdf_flatten.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/src/fpdf_flatten.cpp')
-rw-r--r--fpdfsdk/src/fpdf_flatten.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdf_flatten.cpp b/fpdfsdk/src/fpdf_flatten.cpp
index 413b391eee..36b8319dca 100644
--- a/fpdfsdk/src/fpdf_flatten.cpp
+++ b/fpdfsdk/src/fpdf_flatten.cpp
@@ -42,9 +42,10 @@ FX_BOOL GetContentsRect(CPDF_Document* pDoc,
pPDFPage->Load(pDoc, pDict, FALSE);
pPDFPage->ParseContent(nullptr);
- FX_POSITION pos = pPDFPage->GetFirstObjectPosition();
+ FX_POSITION pos = pPDFPage->GetPageObjectList()->GetHeadPosition();
while (pos) {
- CPDF_PageObject* pPageObject = pPDFPage->GetNextObject(pos);
+ CPDF_PageObject* pPageObject =
+ pPDFPage->GetPageObjectList()->GetNextObject(pos);
if (!pPageObject)
continue;