[Libreoffice-commits] .: editeng/source
Michael Meeks
michael at kemper.freedesktop.org
Tue Jun 7 09:53:58 PDT 2011
editeng/source/misc/svxacorr.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit bab23d30f501d5f4b278cbbd116564540bb01ca2
Author: Michael Meeks <michael.meeks at novell.com>
Date: Tue Jun 7 17:52:02 2011 +0100
fix auto-correction crash - fdo#38000
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