From 841524b1b7ee087933c1ec52686b2a35eb62b96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Fri, 19 Sep 2003 09:46:17 +0000 Subject: [PATCH] INTEGRATION: CWS geordi2q05 (1.10.154); FILE MERGED 2003/09/16 16:20:50 rt 1.10.154.1: #111934#: join CWS ooo11vclrc5 --- vcl/source/gdi/outmap.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcl/source/gdi/outmap.cxx b/vcl/source/gdi/outmap.cxx index 0fb16081c785..1d103527786d 100644 --- a/vcl/source/gdi/outmap.cxx +++ b/vcl/source/gdi/outmap.cxx @@ -2,9 +2,9 @@ * * $RCSfile: outmap.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: vg $ $Date: 2003-04-11 17:28:59 $ + * last change: $Author: rt $ $Date: 2003-09-19 10:46:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -175,7 +175,7 @@ static void ImplCalcBigIntThreshold( long nDPIX, long nDPIY, const ImplMapRes& rMapRes, ImplThresholdRes& rThresRes ) { - if ( LONG_MAX / nDPIX < Abs( rMapRes.mnMapScNumX ) ) + if ( nDPIX && (LONG_MAX / nDPIX < Abs( rMapRes.mnMapScNumX ) ) ) // #111139# avoid div by zero { rThresRes.mnThresLogToPixX = 0; rThresRes.mnThresPixToLogX = 0; @@ -200,7 +200,7 @@ static void ImplCalcBigIntThreshold( long nDPIX, long nDPIY, rThresRes.mnThresPixToLogX = (long)(((ULONG)LONG_MAX + (ULONG)(-nProductX/2)) / nDenomX); } - if ( LONG_MAX / nDPIY < Abs( rMapRes.mnMapScNumY ) ) + if ( nDPIY && (LONG_MAX / nDPIY < Abs( rMapRes.mnMapScNumY ) ) ) // #111139# avoid div by zero { rThresRes.mnThresLogToPixY = 0; rThresRes.mnThresPixToLogY = 0;