hwpfilter/source/hwpreader.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 8e5bc762d8b1bf80e1d2fb7706b03978acc5082f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Mar 17 11:45:31 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Mar 17 17:27:11 2022 +0100 ofz#45598 Integer-overflow Change-Id: Ib3c6f9af746693678f9b031a23e4a703d0615b0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131704 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index bfdc72c704a2..9262b4c81d30 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -3913,9 +3913,10 @@ void HwpReader::makePictureDRAW(HWPDrawingObject *drawobj, const Picture* hbox) basegfx::B2DPoint pt[3], r_pt[3]; for(i = 0 ; i < 3 ; i++ ){ - pt[i].setX(pal.pt[i].x - drawobj->property.rot_originx); + basegfx::B2DPoint rot_origin(drawobj->property.rot_originx, drawobj->property.rot_originy); + pt[i].setX(pal.pt[i].x - rot_origin.getX()); /* Convert to a physical coordinate */ - pt[i].setY(-(pal.pt[i].y - drawobj->property.rot_originy)); + pt[i].setY(-(pal.pt[i].y - rot_origin.getY())); } double skewX;