summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/map.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/outdev/map.cxx')
-rw-r--r--vcl/source/outdev/map.cxx4
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();