chart2/source/view/main/VLegend.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit b15da0141d884b72d01381c133a7212061df3c39 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Aug 1 11:16:53 2018 +0100 Commit: Michael Stahl <michael.st...@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.st...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits