[Libreoffice-commits] .: Branch 'libreoffice-3-4' - editeng/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Wed Jun 8 01:57:57 PDT 2011
editeng/source/misc/svxacorr.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit aad52f69e366735844d117e508e5b44d732fe8cf
Author: Michael Meeks <michael.meeks at novell.com>
Date: Tue Jun 7 17:52:02 2011 +0100
fix auto-correction crash - fdo#38000
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index b5973a3..2bf3e2f 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -518,7 +518,7 @@ sal_Bool SvxAutoCorrect::FnChgOrdinalNumber(
bool validNumber = true;
xub_StrLen i = nEndPos;
- do
+ while ( i > nSttPos )
{
i--;
bool isDigit = rCC.isDigit( rTxt, i );
@@ -531,7 +531,6 @@ sal_Bool SvxAutoCorrect::FnChgOrdinalNumber(
nNumEnd = i;
}
}
- while ( i > nSttPos );
if ( foundEnd && validNumber ) {
sal_Int32 nNum = rTxt.Copy( nSttPos, nNumEnd - nSttPos + 1 ).ToInt32( );
More information about the Libreoffice-commits
mailing list