diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-03 10:07:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-03 20:44:56 +0000 |
commit | a3be1ce627053bc1d2b7a0a896c871ad44b206a1 (patch) | |
tree | 8c4c49bdb31f27cf75a0f1168c8f38b1f7afc5b6 /svtools | |
parent | 9ebd3c7aa61a07abe2bd522e5a6d45812eab127d (diff) |
coverity#1250408 Division or modulo by float zero
Change-Id: I64c0d1cb4c3182c03a7d7660c4736f665fc5f3dc
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/datwin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index b2fea467c553..f27af1cd60c5 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -110,9 +110,9 @@ BrowserColumn::BrowserColumn( sal_uInt16 nItemId, const class Image &rImage, { double n = (double)_nWidth; n *= (double)rCurrentZoom.GetDenominator(); - n /= (double)rCurrentZoom.GetNumerator(); if (!rCurrentZoom.GetNumerator()) throw o3tl::divide_by_zero(); + n /= (double)rCurrentZoom.GetNumerator(); _nOriginalWidth = n>0 ? (long)(n+0.5) : -(long)(-n+0.5); } |