diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-29 19:50:09 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-29 19:50:09 +0000 |
commit | ebbc08b858b4bb3e0a2cb69eb43c51b740515b9a (patch) | |
tree | 148267c35cb667cfbc4dd4133060fbdd66de9885 /xfa/fxfa/cxfa_ffwidget.cpp | |
parent | ea4a56dcecac34c6411ae274f5f5d07523c21d3f (diff) | |
download | pdfium-ebbc08b858b4bb3e0a2cb69eb43c51b740515b9a.tar.xz |
Remove XFA_Unit::Angle
We never use the ::Angle unit internally, we just access the value. This
CL changes the default value to an Integer and drops the measurement.
Change-Id: I85d6d84956595bb0576db42d287f54a5a3db1bed
Reviewed-on: https://pdfium-review.googlesource.com/19790
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.cpp b/xfa/fxfa/cxfa_ffwidget.cpp index a34e67ae9d..439b45be4d 100644 --- a/xfa/fxfa/cxfa_ffwidget.cpp +++ b/xfa/fxfa/cxfa_ffwidget.cpp @@ -55,8 +55,8 @@ void XFA_BOX_GetPath_Arc(const CXFA_BoxData& boxData, rtDraw.top = center.y - b; rtDraw.width = a + a; rtDraw.height = b + b; - pdfium::Optional<float> startAngle = boxData.GetStartAngle(); - pdfium::Optional<float> sweepAngle = boxData.GetSweepAngle(); + pdfium::Optional<int32_t> startAngle = boxData.GetStartAngle(); + pdfium::Optional<int32_t> sweepAngle = boxData.GetSweepAngle(); if (!startAngle && !sweepAngle) { fillPath.AddEllipse(rtDraw); return; |