summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/outmap.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2003-09-19 09:46:17 +0000
committerRüdiger Timm <rt@openoffice.org>2003-09-19 09:46:17 +0000
commit841524b1b7ee087933c1ec52686b2a35eb62b96c (patch)
tree34fddc339e5327b6fc027b202b5df335f1bc05db /vcl/source/gdi/outmap.cxx
parent683e601840c63b4a6152f1ce37ddf55f56dc75b7 (diff)
INTEGRATION: CWS geordi2q05 (1.10.154); FILE MERGED
2003/09/16 16:20:50 rt 1.10.154.1: #111934#: join CWS ooo11vclrc5
Diffstat (limited to 'vcl/source/gdi/outmap.cxx')
-rw-r--r--vcl/source/gdi/outmap.cxx8
1 files 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;