[Libreoffice-commits] core.git: chart2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Aug 1 15:46:24 UTC 2018
chart2/source/view/main/VLegend.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 88af6826a78dcacee4270dc65108a4123b46fb12
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Aug 1 11:16:53 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Aug 1 17:46:03 2018 +0200
forcepoint#60 FPE
Change-Id: I7de20dce834d4c41531487d79071db47e9260e73
Reviewed-on: https://gerrit.libreoffice.org/58403
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index 17889044e591..34511f3885e7 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -243,6 +243,8 @@ void lcl_collectRowHeighs( std::vector< sal_Int32 >& rRowHeights, const sal_Int3
sal_Int32 lcl_getTextLineHeight( const std::vector< sal_Int32 >& aRowHeights, const sal_Int32 nNumberOfRows, double fViewFontSize )
{
const sal_Int32 nFontHeight = static_cast< sal_Int32 >( fViewFontSize );
+ if (!nFontHeight)
+ return 0;
sal_Int32 nTextLineHeight = nFontHeight;
for (sal_Int32 nRow = 0; nRow < nNumberOfRows; ++nRow)
{
More information about the Libreoffice-commits
mailing list