summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-20 12:17:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-20 12:17:42 -0700
commit9f206f05eccf51089fe8a30bf52dc063ea5e2633 (patch)
tree484b1215a89619ca56b7957f07ff87f825bdcd80 /fpdfsdk/fpdfview.cpp
parent5b7c9bbf6c26ca272706814ad3598894ce5e4e3b (diff)
downloadpdfium-9f206f05eccf51089fe8a30bf52dc063ea5e2633.tar.xz
Cleanup CPDFXFA and CPDF document methods
This CL renames and cleans up some methods that are similar between CPDF_Document and CPDFXFA_Document. Review-Url: https://codereview.chromium.org/2351673004
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
-rw-r--r--fpdfsdk/fpdfview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp
index 9f3ca0f9e8..c5b13f850d 100644
--- a/fpdfsdk/fpdfview.cpp
+++ b/fpdfsdk/fpdfview.cpp
@@ -537,7 +537,7 @@ DLLEXPORT FPDF_PAGE STDCALL FPDF_LoadPage(FPDF_DOCUMENT document,
return nullptr;
#ifdef PDF_ENABLE_XFA
- return pDoc->GetPage(page_index);
+ return pDoc->GetXFAPage(page_index);
#else // PDF_ENABLE_XFA
CPDF_Dictionary* pDict = pDoc->GetPage(page_index);
if (!pDict)
@@ -920,7 +920,7 @@ DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document,
int count = pDoc->GetPageCount();
if (page_index < 0 || page_index >= count)
return FALSE;
- CPDFXFA_Page* pPage = pDoc->GetPage(page_index);
+ CPDFXFA_Page* pPage = pDoc->GetXFAPage(page_index);
if (!pPage)
return FALSE;
*width = pPage->GetPageWidth();