diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-16 14:00:21 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-16 14:00:21 -0700 |
commit | db0be96179f0cd5f1787564cbccf86320a4d54ae (patch) | |
tree | 447ba797f172bfffa2d21dacc7dbf6fb2900bfd7 /fpdfsdk/src/fpdfeditimg.cpp | |
parent | cebdda5a686251087f14e8df19b7f988dfae46de (diff) | |
download | pdfium-db0be96179f0cd5f1787564cbccf86320a4d54ae.tar.xz |
Merge to XFA: Introduce CPDFPageFromFPFDPage()
Original Review URL: https://codereview.chromium.org/1406543004 .
(cherry picked from commit 943ea142b6a7e6edc91fe3c307013129e6eb0ef3)
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1411623002 .
Diffstat (limited to 'fpdfsdk/src/fpdfeditimg.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfeditimg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfeditimg.cpp b/fpdfsdk/src/fpdfeditimg.cpp index 09295aa3c4..cd4618e44d 100644 --- a/fpdfsdk/src/fpdfeditimg.cpp +++ b/fpdfsdk/src/fpdfeditimg.cpp @@ -32,7 +32,7 @@ FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, CPDF_ImageObject* pImgObj = (CPDF_ImageObject*)image_object; pImgObj->m_GeneralState.GetModify(); for (int index = 0; index < nCount; index++) { - CPDF_Page* pPage = ((CPDFXFA_Page*)pages[index])->GetPDFPage(); + CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); if (!pPage) continue; pImgObj->m_pImage->ResetCache(pPage, NULL); @@ -73,7 +73,7 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages, CPDF_ImageObject* pImgObj = (CPDF_ImageObject*)image_object; pImgObj->m_GeneralState.GetModify(); for (int index = 0; index < nCount; index++) { - CPDF_Page* pPage = ((CPDFXFA_Page*)pages[index])->GetPDFPage(); + CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); if (!pPage) continue; pImgObj->m_pImage->ResetCache(pPage, NULL); |