summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r--core/fpdfapi/page/cpdf_imageobject.h4
-rw-r--r--core/fpdfapi/page/cpdf_streamcontentparser.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_imageobject.h b/core/fpdfapi/page/cpdf_imageobject.h
index fd99d3d612..2bb1e8233d 100644
--- a/core/fpdfapi/page/cpdf_imageobject.h
+++ b/core/fpdfapi/page/cpdf_imageobject.h
@@ -32,11 +32,13 @@ class CPDF_ImageObject : public CPDF_PageObject {
void SetOwnedImage(std::unique_ptr<CPDF_Image> pImage);
void SetUnownedImage(CPDF_Image* pImage);
- CFX_Matrix m_Matrix;
+ void set_matrix(const CFX_Matrix& matrix) { m_Matrix = matrix; }
+ const CFX_Matrix& matrix() const { return m_Matrix; }
private:
void Release();
+ CFX_Matrix m_Matrix;
CPDF_Image* m_pImage;
bool m_pImageOwned;
};
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.cpp b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
index 6ddd278e27..107ab1ccaa 100644
--- a/core/fpdfapi/page/cpdf_streamcontentparser.cpp
+++ b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
@@ -848,7 +848,7 @@ CPDF_ImageObject* CPDF_StreamContentParser::AddImageObject(
CFX_Matrix ImageMatrix = m_pCurStates->m_CTM;
ImageMatrix.Concat(m_mtContentToUser);
- pImageObj->m_Matrix = ImageMatrix;
+ pImageObj->set_matrix(ImageMatrix);
pImageObj->CalcBoundingBox();
CPDF_ImageObject* pRet = pImageObj.get();