From 90668f3473f4e52cec823ad39c6fcb44ba7c089b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 29 Dec 2020 22:25:53 +0200 Subject: use Degree10 in XPolygon Change-Id: I1820455de46bd428e1fbc0601aba58d377fdb930 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108488 Tested-by: Noel Grandin Reviewed-by: Noel Grandin --- include/svx/xpoly.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/svx/xpoly.hxx') diff --git a/include/svx/xpoly.hxx b/include/svx/xpoly.hxx index 7f50a4c76281..a2074ef8e42d 100644 --- a/include/svx/xpoly.hxx +++ b/include/svx/xpoly.hxx @@ -23,6 +23,7 @@ #include #include #include +#include class Point; namespace tools { class Rectangle; } @@ -48,9 +49,9 @@ class SVXCORE_DLLPUBLIC XPolygon final // auxiliary functions for Bezier conversion void SubdivideBezier(sal_uInt16 nPos, bool bCalcFirst, double fT); void GenBezArc(const Point& rCenter, tools::Long nRx, tools::Long nRy, - tools::Long nXHdl, tools::Long nYHdl, sal_uInt16 nStart, sal_uInt16 nEnd, + tools::Long nXHdl, tools::Long nYHdl, Degree10 nStart, Degree10 nEnd, sal_uInt16 nQuad, sal_uInt16 nFirst); - static bool CheckAngles(sal_uInt16& nStart, sal_uInt16 nEnd, sal_uInt16& nA1, sal_uInt16& nA2); + static bool CheckAngles(Degree10& nStart, Degree10 nEnd, Degree10& nA1, Degree10& nA2); public: XPolygon( sal_uInt16 nSize=16 ); @@ -59,7 +60,7 @@ public: XPolygon( const tools::Polygon& rPoly ); XPolygon( const tools::Rectangle& rRect, tools::Long nRx = 0, tools::Long nRy = 0 ); XPolygon( const Point& rCenter, tools::Long nRx, tools::Long nRy, - sal_uInt16 nStartAngle = 0, sal_uInt16 nEndAngle = 3600, + Degree10 nStartAngle = 0_deg10, Degree10 nEndAngle = 3600_deg10, bool bClose = true ); ~XPolygon(); -- cgit