diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-18 11:57:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-18 12:21:43 +0100 |
commit | 635823696f07956dda22bcc584bd4a133476710c (patch) | |
tree | 2781bd404d820a402efdfe334c2900e748cd607a | |
parent | 12c0d40f82edb6bcc49cb3aa537fade6277047b8 (diff) |
coverity#1202785 Division or modulo by zero
Change-Id: I5ede52be101a7603d4edad30b7a1f8ee0fc4b07d
-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 b54060dcf834..4bfa3f3d4257 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -2784,7 +2784,7 @@ void SfxHelpWindow_Impl::InitSizes() else { nCollapseWidth = aRect.Width; - nExpandWidth = nCollapseWidth * 100 / nTextSize; + nExpandWidth = nTextSize ? nCollapseWidth * 100 / nTextSize : 0; } } } |