summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/implncvt.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 16:59:30 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 16:59:30 +0000
commit2f382d6c2579a25c68dbd121af7f1f5dc7ec9852 (patch)
tree8c6c555a872e6812cd3f76de570b06683526ad14 /vcl/source/gdi/implncvt.cxx
parentf7a0cc83bb59efd6abd820bd78acc75e8313ea4e (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'vcl/source/gdi/implncvt.cxx')
-rw-r--r--vcl/source/gdi/implncvt.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/implncvt.cxx b/vcl/source/gdi/implncvt.cxx
index 98a428d36380..8450b387188d 100644
--- a/vcl/source/gdi/implncvt.cxx
+++ b/vcl/source/gdi/implncvt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: implncvt.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:05:38 $
+ * last change: $Author: hr $ $Date: 2003-03-27 17:57:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -362,8 +362,8 @@ const Polygon* ImplLineConverter::ImplGetNext()
ImplFloatPoint aN2Vec( aPointB.GetNVec( aPointC ) );
aN2Vec *= mfWidthHalf;
- f2D = ( aN2Vec.fX == 0 ) ? 1 : ( aN2Vec.fY / aN2Vec.fX );
- if ( f1D == f2D )
+ f2D = ( fabs( aN2Vec.fX ) < 0.00000001 ) ? 1 : ( aN2Vec.fY / aN2Vec.fX );
+ if ( fabs( f1D - f2D ) < 0.00000001 )
nDirection = CURVE_STRAIGHTON;
else
{
@@ -413,7 +413,7 @@ const Polygon* ImplLineConverter::ImplGetNext()
int nValid = 0;
- if ( ( aN2Vec.fX ) == 0 )
+ if ( fabs( aN2Vec.fX ) < 0.00000001 )
{
fX = aDestPoint.fX;
nValid = 1;
@@ -421,7 +421,7 @@ const Polygon* ImplLineConverter::ImplGetNext()
else
fBDest = aDestPoint.fY - ( aN2Vec.fY / aN2Vec.fX * aDestPoint.fX );
- if ( ( aN1Vec.fX ) == 0 )
+ if ( fabs( aN1Vec.fX ) < 0.000000001 )
{
fX = aSourcePoint.fX;
nValid = 2;