diff options
Diffstat (limited to 'editeng/source/misc/svxacorr.cxx')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index b0a489b6279a..4bf43cffc102 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( ); |