sd/source/ui/dlg/vectdlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 5f182564b13addc7f88e7369b4a050c220ea93f1 Author: Xisco Fauli <[email protected]> AuthorDate: Thu Apr 16 14:02:09 2026 +0200 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Apr 16 17:10:45 2026 +0200 cid#1690675: Division or modulo by float zero Change-Id: I1260947662233e486638de60149eda22077783ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203740 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sd/source/ui/dlg/vectdlg.cxx b/sd/source/ui/dlg/vectdlg.cxx index ce9c8f0bf098..e46074dd3e0f 100644 --- a/sd/source/ui/dlg/vectdlg.cxx +++ b/sd/source/ui/dlg/vectdlg.cxx @@ -117,7 +117,8 @@ Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap const & rBmp, double& rScale ) if( aSizePix.Width() > VECTORIZE_MAX_EXTENT || aSizePix.Height() > VECTORIZE_MAX_EXTENT ) { const ::tools::Rectangle aRect( GetRect( Size( VECTORIZE_MAX_EXTENT, VECTORIZE_MAX_EXTENT ), aSizePix ) ); - rScale = double(aSizePix.Width()) / aRect.GetWidth(); + if (aRect.GetWidth()) + rScale = double(aSizePix.Width()) / aRect.GetWidth(); aNew.Scale( aRect.GetSize() ); } else
