summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/poly.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 353638ea984d..f239215bba68 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -1315,8 +1315,8 @@ void Polygon::Rotate( const Point& rCenter, double fSin, double fCos )
const long nX = rPt.X() - nCenterX;
const long nY = rPt.Y() - nCenterY;
- rPt.X() = (long) FRound( fCos * nX + fSin * nY ) + nCenterX;
- rPt.Y() = -(long) FRound( fSin * nX - fCos * nY ) + nCenterY;
+ rPt.X() = FRound( fCos * nX + fSin * nY ) + nCenterX;
+ rPt.Y() = - FRound( fSin * nX - fCos * nY ) + nCenterY;
}
}