tools/source/generic/poly.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f017eaf5d615faaf36f784b65005329ec29d16fb Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Nov 18 10:32:35 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Nov 18 14:54:35 2022 +0100 ofz#53450 Integer-overflow Change-Id: Iccabfb8991a4dca6ec05565f01f6cff82c642d27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142934 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index ae3465a2ce22..2665b0381571 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -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)) ); } }