diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-24 18:38:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-24 18:38:57 +0000 |
commit | 1313ca08f7156898acf09e893e3f0e20d2d85424 (patch) | |
tree | fd1150556c7b289d990382cec3b60d9f9881742f /fpdfsdk/fpdf_editpath.cpp | |
parent | f4f2b6d45e00c67a3c508618a829330a67b827ba (diff) | |
download | pdfium-1313ca08f7156898acf09e893e3f0e20d2d85424.tar.xz |
Make CPDF_PathObject::m_bStroke private.
Remove some setters on newly constructed objects, since |m_bStroke| is
already initialized to false.
Change-Id: I8d04efec997226fb86091566eea96604f18680aa
Reviewed-on: https://pdfium-review.googlesource.com/c/44511
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_editpath.cpp')
-rw-r--r-- | fpdfsdk/fpdf_editpath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_editpath.cpp b/fpdfsdk/fpdf_editpath.cpp index c412eef2d0..81bdcb6e21 100644 --- a/fpdfsdk/fpdf_editpath.cpp +++ b/fpdfsdk/fpdf_editpath.cpp @@ -215,7 +215,7 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_SetDrawMode(FPDF_PAGEOBJECT path, pPathObj->m_FillType = FXFILL_WINDING; else pPathObj->m_FillType = 0; - pPathObj->m_bStroke = stroke != 0; + pPathObj->set_stroke(!!stroke); pPathObj->SetDirty(true); return true; } @@ -234,7 +234,7 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_GetDrawMode(FPDF_PAGEOBJECT path, else *fillmode = FPDF_FILLMODE_NONE; - *stroke = pPathObj->m_bStroke; + *stroke = pPathObj->stroke(); return true; } |