chart2/source/view/main/VLegend.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 88af6826a78dcacee4270dc65108a4123b46fb12 Author: Caolán McNamara <[email protected]> AuthorDate: Wed Aug 1 11:16:53 2018 +0100 Commit: Caolán McNamara <[email protected]> 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 <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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) { _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
