diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-11-18 10:32:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-11-18 14:54:35 +0100 |
commit | f017eaf5d615faaf36f784b65005329ec29d16fb (patch) | |
tree | 8b8c15f212cd1a5947b70b938d19bd6f1c953ba5 /tools/source/generic | |
parent | e960d3fea28fe4c180dc5612ce00682e432e9772 (diff) |
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>
Diffstat (limited to 'tools/source/generic')
-rw-r--r-- | tools/source/generic/poly.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)) ); } } |