diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-05-07 15:33:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-05-07 17:24:18 +0100 |
commit | 657e6ad745d740520e04ae6da56c7607683a1395 (patch) | |
tree | 6bc2c1180a42b504fa8279760bd8bd3d947430c7 /vcl/source/outdev | |
parent | 525292acab017dcfd50ef0c0b6dc4a5229e32a4e (diff) |
Revert "coverity#1250405 Division or modulo by float zero"
This reverts commit 445ac42cc2f2f759a43d97198039b980026ed70e.
Change-Id: I4f106a67385776262f187e63c445ea8c0cb0207b
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/map.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index c2c65b341ece..619107c40978 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <o3tl/numeric.hxx> #include <tools/bigint.hxx> #include <vcl/virdev.hxx> @@ -257,9 +256,6 @@ static void ImplCalcMapResolution( const MapMode& rMapMode, } else { - if (!aScaleX.GetNumerator() || !aScaleY.GetNumerator()) - throw o3tl::divide_by_zero(); - rMapRes.mfOffsetX *= aScaleX.GetDenominator(); rMapRes.mfOffsetX /= aScaleX.GetNumerator(); rMapRes.mfOffsetX += aOrigin.X(); |