vcl/unx/gtk3/gtk3gtkinst.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8c3c221c12dbc4d5eafe5988d72d04e86db6c278 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Apr 20 08:42:55 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Apr 20 10:44:43 2020 +0200 cid#1462315 Division or modulo by zero Change-Id: If4e5624675250cf288227b46514e432c3c662ca2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92522 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index eeed79fc7883..257d41b7a4ec 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -12782,7 +12782,7 @@ private: // if we're using a custom renderer, limit the height to the height nMaxRows would be // for a normal renderer, and then round down to how many custom rows fit in that // space - if (m_nNonCustomLineHeight != -1) + if (m_nNonCustomLineHeight != -1 && nRowHeight) { gint nNormalHeight = get_height_rows(m_nNonCustomLineHeight, nSeparatorHeight, nMaxRows); if (nHeight > nNormalHeight) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits