diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-20 08:42:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-20 10:44:43 +0200 |
commit | 8c3c221c12dbc4d5eafe5988d72d04e86db6c278 (patch) | |
tree | 87cf0472377a5711eca531b5999e8fb5f0d6cf69 /vcl | |
parent | 3d4f39628ecdef9ac080f46d197e5279caea8322 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |