summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfeditimg.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-08-05 22:34:58 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-05 22:34:58 -0700
commitf41d9dc1ead47a1218e1cd37bd74ec850c8baaa3 (patch)
treed8d32b58909814f9835898c4a87f03b5bc510e69 /fpdfsdk/fpdfeditimg.cpp
parent8ca63de14d522d3d259d74fa43b28b05b02728e8 (diff)
downloadpdfium-f41d9dc1ead47a1218e1cd37bd74ec850c8baaa3.tar.xz
Add CPDF_ImageObject::GetImage().
And use it where appropriate. Review-Url: https://codereview.chromium.org/2224623002
Diffstat (limited to 'fpdfsdk/fpdfeditimg.cpp')
-rw-r--r--fpdfsdk/fpdfeditimg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/fpdfeditimg.cpp b/fpdfsdk/fpdfeditimg.cpp
index b2c25779c6..cd28301977 100644
--- a/fpdfsdk/fpdfeditimg.cpp
+++ b/fpdfsdk/fpdfeditimg.cpp
@@ -37,9 +37,9 @@ FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages,
for (int index = 0; index < nCount; index++) {
CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]);
if (pPage)
- pImgObj->m_pImage->ResetCache(pPage, nullptr);
+ pImgObj->GetImage()->ResetCache(pPage, nullptr);
}
- pImgObj->m_pImage->SetJpegImage(pFile);
+ pImgObj->GetImage()->SetJpegImage(pFile);
return TRUE;
}
@@ -77,9 +77,9 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,
for (int index = 0; index < nCount; index++) {
CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]);
if (pPage)
- pImgObj->m_pImage->ResetCache(pPage, nullptr);
+ pImgObj->GetImage()->ResetCache(pPage, nullptr);
}
- pImgObj->m_pImage->SetImage(reinterpret_cast<CFX_DIBitmap*>(bitmap), FALSE);
+ pImgObj->GetImage()->SetImage(reinterpret_cast<CFX_DIBitmap*>(bitmap), FALSE);
pImgObj->CalcBoundingBox();
return TRUE;
}