diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-17 11:45:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-17 17:27:11 +0100 |
commit | 8e5bc762d8b1bf80e1d2fb7706b03978acc5082f (patch) | |
tree | 70badfced53d5eeea889a75cc461116bdc16eba8 /hwpfilter | |
parent | a89c16d8f37effc1be0898fc268d7b88c0157407 (diff) |
ofz#45598 Integer-overflow
Change-Id: Ib3c6f9af746693678f9b031a23e4a703d0615b0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131704
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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; |