diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-29 09:44:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-29 10:40:09 +0000 |
commit | 54ba9587c0f1d3b5206742339af4907047fb4748 (patch) | |
tree | 3526b06449a74b5bca07aa4cdb141abc8f535c5b /svtools/source/misc/imap.cxx | |
parent | b7e999e2e9df272e8542c6a32486b2cc1a058f15 (diff) |
coverity#1202781 Division or modulo by zero
Change-Id: I2908c57badd079c8f19c679f40ed815ce2cba374
Diffstat (limited to 'svtools/source/misc/imap.cxx')
-rw-r--r-- | svtools/source/misc/imap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx index 647f3e8fbc31..4eebd55d9638 100644 --- a/svtools/source/misc/imap.cxx +++ b/svtools/source/misc/imap.cxx @@ -22,7 +22,7 @@ #include <vcl/svapp.hxx> #include <vcl/mapmod.hxx> #include <vcl/window.hxx> - +#include <o3tl/numeric.hxx> #include <svl/urihelper.hxx> #include <svtools/imap.hxx> #include <svtools/imapobj.hxx> @@ -384,7 +384,7 @@ void IMapCircleObject::Scale( const Fraction& rFracX, const Fraction& rFracY ) } if (!aAverage.GetDenominator()) - throw std::runtime_error("divide by zero"); + throw o3tl::divide_by_zero(); nRadius = ( nRadius * aAverage.GetNumerator() ) / aAverage.GetDenominator(); } |