summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_transformpage.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-02 15:45:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-02 15:45:22 -0700
commitfc1d16f76f173b8437edc93dde8f9f82abb51298 (patch)
treeec4e9fedf08524443a6ff13d45b4e66159f8990b /fpdfsdk/fpdf_transformpage.cpp
parentbbee445c5a77dfbaea9041308f001c756e49c5fd (diff)
downloadpdfium-fc1d16f76f173b8437edc93dde8f9f82abb51298.tar.xz
Make CPDF_Path have a CFX_Path rather than inheriting
Review-Url: https://codereview.chromium.org/2305103002
Diffstat (limited to 'fpdfsdk/fpdf_transformpage.cpp')
-rw-r--r--fpdfsdk/fpdf_transformpage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fpdf_transformpage.cpp b/fpdfsdk/fpdf_transformpage.cpp
index 712080a9de..f76cc2be8c 100644
--- a/fpdfsdk/fpdf_transformpage.cpp
+++ b/fpdfsdk/fpdf_transformpage.cpp
@@ -219,11 +219,11 @@ DLLEXPORT FPDF_CLIPPATH STDCALL FPDF_CreateClipPath(float left,
float bottom,
float right,
float top) {
- CPDF_ClipPath* pNewClipPath = new CPDF_ClipPath();
- pNewClipPath->GetPrivateCopy();
CPDF_Path Path;
- Path.GetPrivateCopy();
Path.AppendRect(left, bottom, right, top);
+
+ CPDF_ClipPath* pNewClipPath = new CPDF_ClipPath();
+ pNewClipPath->GetPrivateCopy();
pNewClipPath->AppendPath(Path, FXFILL_ALTERNATE, FALSE);
return pNewClipPath;
}