summaryrefslogtreecommitdiff
path: root/tools/source/generic/poly2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/generic/poly2.cxx')
-rw-r--r--tools/source/generic/poly2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index a1c4fe0cbe69..2534fb63b029 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -254,13 +254,13 @@ void PolyPolygon::Scale( double fScaleX, double fScaleY )
mpImplPolyPolygon->mvPolyAry[ i ].Scale( fScaleX, fScaleY );
}
-void PolyPolygon::Rotate( const Point& rCenter, sal_uInt16 nAngle10 )
+void PolyPolygon::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 ) );
}
}