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 /filter | |
parent | b7e999e2e9df272e8542c6a32486b2cc1a058f15 (diff) |
coverity#1202781 Division or modulo by zero
Change-Id: I2908c57badd079c8f19c679f40ed815ce2cba374
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/epict/epict.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/epict/epict.cxx b/filter/source/graphicfilter/epict/epict.cxx index 3fe0455e2e3f..69407f6b4a82 100644 --- a/filter/source/graphicfilter/epict/epict.cxx +++ b/filter/source/graphicfilter/epict/epict.cxx @@ -34,7 +34,7 @@ #include <vcl/msgbox.hxx> #include <vcl/gdimtf.hxx> #include <tools/bigint.hxx> - +#include <o3tl/numeric.hxx> #include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/polygon/b2dpolypolygon.hxx> #include <boost/scoped_array.hpp> @@ -1758,7 +1758,7 @@ void PictWriter::WriteOpcodes( const GDIMetaFile & rMTF ) if (nLength > 0) { if (nNormSize == 0) - throw std::runtime_error("divide by zero"); + throw o3tl::divide_by_zero(); for (sal_Int32 i = 0; i < nLength; ++i) pDXAry[ i ] = pDXAry[ i ] * ( (long)pA->GetWidth() ) / nNormSize; } |