cid#1660323 silence Division or modulo by float zero

Change-Id: I49f88360697ceb7a7461b964a0b6ba9122c60c19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189965
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2025-08-20 15:30:57 +02:00
parent 2a5257b743
commit fd47b9073d
+3
View File
@@ -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)
{