diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-06-05 16:19:11 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-05 16:19:11 +0000 |
commit | d3d8287e143daf12a602a919c120b4e0c656abf8 (patch) | |
tree | a616529626c6cc5c021cbc5e1309be0ab67108b3 /fpdfsdk/fpdf_editpath.cpp | |
parent | eaba5af84597164281ddd972a5e98631b18d783b (diff) | |
download | pdfium-d3d8287e143daf12a602a919c120b4e0c656abf8.tar.xz |
Create m_ContentStream field in CPDF_PageObject.
Content streams are now split and can set nonzero values to identify
each parsed content stream.
Bug: pdfium:1051
Change-Id: Ia2cb1e0997db5264d468043af31f9b41e8d0d349
Reviewed-on: https://pdfium-review.googlesource.com/33591
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@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 70a558d2f1..102292eb3f 100644 --- a/fpdfsdk/fpdf_editpath.cpp +++ b/fpdfsdk/fpdf_editpath.cpp @@ -46,7 +46,7 @@ CPDF_PathObject* CPDFPathObjectFromFPDFPageObject(FPDF_PAGEOBJECT page_object) { FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewPath(float x, float y) { - auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); + auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(-1); pPathObj->m_Path.AppendPoint(CFX_PointF(x, y), FXPT_TYPE::MoveTo, false); pPathObj->DefaultStates(); @@ -58,7 +58,7 @@ FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewRect(float x, float y, float w, float h) { - auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); + auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(-1); pPathObj->m_Path.AppendRect(x, y, x + w, y + h); pPathObj->DefaultStates(); |