summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-18 11:57:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-18 12:21:43 +0100
commit635823696f07956dda22bcc584bd4a133476710c (patch)
tree2781bd404d820a402efdfe334c2900e748cd607a /sfx2/source/appl
parent12c0d40f82edb6bcc49cb3aa537fade6277047b8 (diff)
coverity#1202785 Division or modulo by zero
Change-Id: I5ede52be101a7603d4edad30b7a1f8ee0fc4b07d
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/newhelp.cxx2
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;
}
}
}