ofz#53450 Integer-overflow
Change-Id: Iccabfb8991a4dca6ec05565f01f6cff82c642d27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142934 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -1433,7 +1433,7 @@ void Polygon::Rotate( const Point& rCenter, double fSin, double fCos )
|
||||
const tools::Long nX = rPt.X() - nCenterX;
|
||||
const tools::Long nY = rPt.Y() - nCenterY;
|
||||
rPt.setX( FRound(fCos * nX + fSin * nY + nCenterX) );
|
||||
rPt.setY( - FRound(fSin * nX - fCos * nY - nCenterY) );
|
||||
rPt.setY( FRound(-(fSin * nX - fCos * nY - nCenterY)) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user