summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfeditimg.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-11-21 14:54:29 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-21 14:54:29 -0800
commit8a5e15d7b16c1c2a99b013fc4f68597cedab4fcf (patch)
treed6cc32fe926152e521248f57c5c51deb8ba5aa73 /fpdfsdk/fpdfeditimg.cpp
parentd88090fb780480217af37273e7abb01ae48e322b (diff)
downloadpdfium-8a5e15d7b16c1c2a99b013fc4f68597cedab4fcf.tar.xz
Make CPDF_ImageObject::m_Matrix private.
Review-Url: https://codereview.chromium.org/2514263003
Diffstat (limited to 'fpdfsdk/fpdfeditimg.cpp')
-rw-r--r--fpdfsdk/fpdfeditimg.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/fpdfsdk/fpdfeditimg.cpp b/fpdfsdk/fpdfeditimg.cpp
index e256f85c0f..acd53d3b07 100644
--- a/fpdfsdk/fpdfeditimg.cpp
+++ b/fpdfsdk/fpdfeditimg.cpp
@@ -55,12 +55,10 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetMatrix(FPDF_PAGEOBJECT image_object,
return false;
CPDF_ImageObject* pImgObj = reinterpret_cast<CPDF_ImageObject*>(image_object);
- pImgObj->m_Matrix.a = static_cast<FX_FLOAT>(a);
- pImgObj->m_Matrix.b = static_cast<FX_FLOAT>(b);
- pImgObj->m_Matrix.c = static_cast<FX_FLOAT>(c);
- pImgObj->m_Matrix.d = static_cast<FX_FLOAT>(d);
- pImgObj->m_Matrix.e = static_cast<FX_FLOAT>(e);
- pImgObj->m_Matrix.f = static_cast<FX_FLOAT>(f);
+ pImgObj->set_matrix(
+ CFX_Matrix(static_cast<FX_FLOAT>(a), static_cast<FX_FLOAT>(b),
+ static_cast<FX_FLOAT>(c), static_cast<FX_FLOAT>(d),
+ static_cast<FX_FLOAT>(e), static_cast<FX_FLOAT>(f)));
pImgObj->CalcBoundingBox();
return true;
}