diff options
Diffstat (limited to 'tools/source/generic/point.cxx')
-rw-r--r-- | tools/source/generic/point.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/generic/point.cxx b/tools/source/generic/point.cxx index 6d4dc2e1e3ec..0b3d06c4753b 100644 --- a/tools/source/generic/point.cxx +++ b/tools/source/generic/point.cxx @@ -71,8 +71,8 @@ void Point::RotateAround( long& rX, long& rY, long nY = rY-nOriginY; // Rotation... - rX = +((long)(nCos*nX + nSin*nY)) + nOriginX; - rY = -((long)(nSin*nX - nCos*nY)) + nOriginY; + rX = + static_cast<long>(nCos*nX + nSin*nY) + nOriginX; + rY = - static_cast<long>(nSin*nX - nCos*nY) + nOriginY; } } |