diff options
Diffstat (limited to 'tools/source/generic/poly.cxx')
-rw-r--r-- | tools/source/generic/poly.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 7e972714ad2a..c25783764f27 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -1395,13 +1395,13 @@ void Polygon::Scale( double fScaleX, double fScaleY ) } } -void Polygon::Rotate( const Point& rCenter, sal_uInt16 nAngle10 ) +void Polygon::Rotate( const Point& rCenter, Degree10 nAngle10 ) { - nAngle10 %= 3600; + nAngle10 %= Degree10(3600); if( nAngle10 ) { - const double fAngle = F_PI1800 * nAngle10; + const double fAngle = F_PI1800 * nAngle10.get(); Rotate( rCenter, sin( fAngle ), cos( fAngle ) ); } } |