summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/fpdfapi/fpdf_edit')
-rw-r--r--core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp
index 555de449fa..82ab370564 100644
--- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp
+++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp
@@ -20,9 +20,9 @@ CPDF_PageContentGenerator::CPDF_PageContentGenerator(CPDF_Page* pPage)
if (m_pPage) {
m_pDocument = m_pPage->m_pDocument;
}
- FX_POSITION pos = pPage->GetFirstObjectPosition();
+ FX_POSITION pos = pPage->GetPageObjectList()->GetHeadPosition();
while (pos) {
- InsertPageObject(pPage->GetNextObject(pos));
+ InsertPageObject(pPage->GetPageObjectList()->GetNextObject(pos));
}
}
CPDF_PageContentGenerator::~CPDF_PageContentGenerator() {}