diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-01 21:08:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 09:14:51 +0100 |
commit | c15ae864977a1be8ff225a8cca97ee584b22bfd4 (patch) | |
tree | b1bcf54316dc2d3f291424e9e6eb65feb0239eaa /sfx2 | |
parent | f63e2ac112a1a94392f7d4a8922e40f9fd951daf (diff) |
coverity#982429 Division or modulo by zero
Change-Id: I0c75bb8729b359390fb4026496c085f2056230ba
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 66555ec8aa1a..4ee115da5368 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -2753,7 +2753,7 @@ void SfxHelpWindow_Impl::LoadConfig() nExpandWidth = nWidth; nCollapseWidth = nExpandWidth * nTextSize / 100; } - else + else if (nTextSize != 0) { nCollapseWidth = nWidth; nExpandWidth = nCollapseWidth * 100 / nTextSize; |