diff options
author | hdu <duerr@sun.com> | 2009-10-22 09:35:47 +0200 |
---|---|---|
committer | hdu <duerr@sun.com> | 2009-10-22 09:35:47 +0200 |
commit | 350ea0397036814992d47c7b836ef6f5005c6e98 (patch) | |
tree | 752ecee785ce4f655b950f2f4772e6e57ad1b351 /basegfx/source/curve | |
parent | 10235e9e83bd48e47e07486a5542b4e1b9299e90 (diff) |
#i106127# fix typo in new method getMaxDistancePositions()
Diffstat (limited to 'basegfx/source/curve')
-rw-r--r-- | basegfx/source/curve/b2dcubicbezier.cxx | 4 |
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; } |