summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorhdu <duerr@sun.com>2009-10-22 09:35:47 +0200
committerhdu <duerr@sun.com>2009-10-22 09:35:47 +0200
commit350ea0397036814992d47c7b836ef6f5005c6e98 (patch)
tree752ecee785ce4f655b950f2f4772e6e57ad1b351 /basegfx/source
parent10235e9e83bd48e47e07486a5542b4e1b9299e90 (diff)
#i106127# fix typo in new method getMaxDistancePositions()
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/curve/b2dcubicbezier.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/curve/b2dcubicbezier.cxx b/basegfx/source/curve/b2dcubicbezier.cxx
index f0a1a0b54e90..38d783e9651d 100644
--- a/basegfx/source/curve/b2dcubicbezier.cxx
+++ b/basegfx/source/curve/b2dcubicbezier.cxx
@@ -7,7 +7,6 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: b2dcubicbezier.cxx,v $
- * $Revision: 1.16 $
*
* This file is part of OpenOffice.org.
*
@@ -1086,7 +1085,8 @@ namespace basegfx
if( pResult[1] < 0 || pResult[1]>1)
--nCount;
if( pResult[0] < 0 || pResult[0]>1)
- { --nCount; pResult[0] = pResult[0]; }
+ if( --nCount)
+ pResult[0] = pResult[1];
return nCount;
}