[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - chart2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Aug 3 08:47:15 UTC 2018


 chart2/source/view/main/VLegend.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit b15da0141d884b72d01381c133a7212061df3c39
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Aug 1 11:16:53 2018 +0100
Commit:     Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Fri Aug 3 10:46:49 2018 +0200

    forcepoint#60 FPE
    
    Change-Id: I7de20dce834d4c41531487d79071db47e9260e73
    Reviewed-on: https://gerrit.libreoffice.org/58404
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>

diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index 15494a12f27c..a5e8b8c8f029 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -242,6 +242,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