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:
Caolán McNamara
2022-11-18 10:32:35 +00:00
parent e960d3fea2
commit f017eaf5d6

View File

@@ -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)) );
}
}