cui/source/tabpages/tpbitmap.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 9e5b85ca5272757c2d3306f64f961df1f9528f2d Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Aug 20 10:15:14 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Aug 20 14:20:29 2025 +0200 cid#1660543 avoid Division or modulo by float zero rather feeble effort Change-Id: Ibefe91d44877288668839d0593987a14bff4c51a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189962 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx index a2ce864dd36e..8dc676f5a23d 100644 --- a/cui/source/tabpages/tpbitmap.cxx +++ b/cui/source/tabpages/tpbitmap.cxx @@ -280,8 +280,11 @@ void SvxBitmapTabPage::Reset( const SfxItemSet* rAttrs ) double fUIScale = 1.0; if (mpView) { - fUIScale = double(mpView->GetModel().GetUIScale()); - + double fModelUIScale = double(mpView->GetModel().GetUIScale()); + if (fModelUIScale == 0) + SAL_WARN("cui.tabpages", "zero UIScale"); + else + fUIScale = fModelUIScale; if (mpView->GetMarkedObjectList().GetMarkCount() != 0) {