diff options
author | thestig <thestig@chromium.org> | 2016-11-21 14:54:29 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-21 14:54:29 -0800 |
commit | 8a5e15d7b16c1c2a99b013fc4f68597cedab4fcf (patch) | |
tree | d6cc32fe926152e521248f57c5c51deb8ba5aa73 /core/fpdfapi/edit | |
parent | d88090fb780480217af37273e7abb01ae48e322b (diff) | |
download | pdfium-8a5e15d7b16c1c2a99b013fc4f68597cedab4fcf.tar.xz |
Make CPDF_ImageObject::m_Matrix private.
Review-Url: https://codereview.chromium.org/2514263003
Diffstat (limited to 'core/fpdfapi/edit')
-rw-r--r-- | core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp b/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp index cabd2c391c..a65d564141 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp @@ -19,7 +19,7 @@ namespace { -CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& ar, CFX_Matrix& matrix) { +CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& ar, const CFX_Matrix& matrix) { ar << matrix.a << " " << matrix.b << " " << matrix.c << " " << matrix.d << " " << matrix.e << " " << matrix.f; return ar; @@ -84,11 +84,11 @@ CFX_ByteString CPDF_PageContentGenerator::RealizeResource( void CPDF_PageContentGenerator::ProcessImage(CFX_ByteTextBuf* buf, CPDF_ImageObject* pImageObj) { - if ((pImageObj->m_Matrix.a == 0 && pImageObj->m_Matrix.b == 0) || - (pImageObj->m_Matrix.c == 0 && pImageObj->m_Matrix.d == 0)) { + if ((pImageObj->matrix().a == 0 && pImageObj->matrix().b == 0) || + (pImageObj->matrix().c == 0 && pImageObj->matrix().d == 0)) { return; } - *buf << "q " << pImageObj->m_Matrix << " cm "; + *buf << "q " << pImageObj->matrix() << " cm "; CPDF_Image* pImage = pImageObj->GetImage(); if (pImage->IsInline()) |