From fd47b9073d5fcaf023c7a153c01a8e8d9475a3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 20 Aug 2025 10:25:28 +0100 Subject: [PATCH] cid#1660323 silence Division or modulo by float zero MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I49f88360697ceb7a7461b964a0b6ba9122c60c19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189965 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- sd/source/console/PresenterHelpView.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sd/source/console/PresenterHelpView.cxx b/sd/source/console/PresenterHelpView.cxx index 7f22fdbf3dd0..b7a4d948b33d 100644 --- a/sd/source/console/PresenterHelpView.cxx +++ b/sd/source/console/PresenterHelpView.cxx @@ -392,6 +392,9 @@ void PresenterHelpView::CheckFontSize() rxBlock->maRight.GetHeight()); }); + if (nY == 0) + break; + const double nHeightDifference (nY - (mnSeparatorY-gnVerticalBorder)); if (nHeightDifference <= 0 && nHeightDifference > -50) {