oox/source/export/drawingml.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2e2578732588d3f4b9dd10fef91ff3087836f11d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Mar 1 17:33:46 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Mar 1 19:55:26 2023 +0000 cid#1521560 Division or modulo by float zero and cid#1521558 Division or modulo by float zero Change-Id: I42a82f294950ea22a2557f76d4589b06b50d9d46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148071 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index d3fb8a3daf97..26858cac40cf 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1970,7 +1970,7 @@ void DrawingML::WriteXGraphicCustomPosition(uno::Reference<beans::XPropertySet> } sal_Int32 nL = 0, nT = 0, nR = 0, nB = 0; - if (GetProperty(rXPropSet, "FillBitmapRectanglePoint")) + if (GetProperty(rXPropSet, "FillBitmapRectanglePoint") && rSize.Width != 0 && rSize.Height != 0) { sal_Int32 nWidth = (1 - (nSizeX / rSize.Width)) * 100000; sal_Int32 nHeight = (1 - (nSizeY / rSize.Height)) * 100000;