vcl/source/gdi/metaact.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 75be7ffa4593f7bbf05cd613f5a67e603b9882df Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Jun 18 21:02:43 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Jun 20 13:54:36 2023 +0200 ofz#59902 Integer-overflow Change-Id: Iedb4ca9aef44ef8ead9b021075c4808001e9ae5b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153237 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> (cherry picked from commit 1128a505a1637cce4c35871432ac902ca2335c64) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153287 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index 241940c3b79d..e5e243f55652 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -1214,7 +1214,7 @@ MetaMaskScalePartAction::MetaMaskScalePartAction( const Point& rDstPt, const Siz void MetaMaskScalePartAction::Execute( OutputDevice* pOut ) { - if (!AllowRect(tools::Rectangle(maDstPt, maDstSz))) + if (!AllowRect(pOut->LogicToPixel(tools::Rectangle(maDstPt, maDstSz)))) return; pOut->DrawMask( maDstPt, maDstSz, maSrcPt, maSrcSz, maBmp, maColor, MetaActionType::MASKSCALE );