summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r--core/fpdfapi/page/cpdf_pathobject.h5
-rw-r--r--core/fpdfapi/page/cpdf_streamcontentparser.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_pathobject.h b/core/fpdfapi/page/cpdf_pathobject.h
index 9067147410..e6e0d19de8 100644
--- a/core/fpdfapi/page/cpdf_pathobject.h
+++ b/core/fpdfapi/page/cpdf_pathobject.h
@@ -27,6 +27,9 @@ class CPDF_PathObject final : public CPDF_PageObject {
void CalcBoundingBox();
+ int filltype() const { return m_FillType; }
+ void set_filltype(int filltype) { m_FillType = filltype; }
+
bool stroke() const { return m_bStroke; }
void set_stroke(bool stroke) { m_bStroke = stroke; }
@@ -34,9 +37,9 @@ class CPDF_PathObject final : public CPDF_PageObject {
void set_matrix(const CFX_Matrix& matrix) { m_Matrix = matrix; }
CPDF_Path m_Path;
- int m_FillType = 0;
private:
+ int m_FillType = 0;
bool m_bStroke = false;
CFX_Matrix m_Matrix;
};
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.cpp b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
index fb7459d92e..245a2852bc 100644
--- a/core/fpdfapi/page/cpdf_streamcontentparser.cpp
+++ b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
@@ -1475,8 +1475,8 @@ void CPDF_StreamContentParser::AddPathObject(int FillType, bool bStroke) {
if (bStroke || FillType) {
auto pPathObj =
pdfium::MakeUnique<CPDF_PathObject>(GetCurrentStreamIndex());
- pPathObj->m_FillType = FillType;
pPathObj->m_Path = Path;
+ pPathObj->set_filltype(FillType);
pPathObj->set_stroke(bStroke);
pPathObj->set_matrix(matrix);
SetGraphicStates(pPathObj.get(), true, false, true);