Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi there,

        It'd be lovely to cherry-pick to libreoffice-3-4 from master :-)

        Thanks,

                Michael.

-- 
 michael.meeks@novell.com  <><, Pseudo Engineer, itinerant idiot

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( );

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.