incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject svn commit: r1352457 - /incubator/ooo/trunk/main/svl/source/numbers/zformat.cxx
Date Thu, 21 Jun 2012 08:47:07 GMT
Author: leiw
Date: Thu Jun 21 08:47:06 2012
New Revision: 1352457

URL: http://svn.apache.org/viewvc?rev=1352457&view=rev
Log:
#i119943 -  Underline "_" can not work with ";" in format code, the semicolon will always
be regarded as separator 

          Patch by: Zhang Lu
          Review by: Wang Lei

Modified:
    incubator/ooo/trunk/main/svl/source/numbers/zformat.cxx

Modified: incubator/ooo/trunk/main/svl/source/numbers/zformat.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svl/source/numbers/zformat.cxx?rev=1352457&r1=1352456&r2=1352457&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svl/source/numbers/zformat.cxx (original)
+++ incubator/ooo/trunk/main/svl/source/numbers/zformat.cxx Thu Jun 21 08:47:06 2012
@@ -1297,7 +1297,7 @@ short SvNumberformat::ImpNextSymbol(Stri
             break;
             case SsGetString:
             {
-                if (cToken == ';' && !IsSingleSymbol(rString, nPos-2))
+                if (cToken == ';' && (nPos>=2) &&!IsSingleSymbol(rString,
nPos-2))
 				{
                     eState = SsStop;
 				}



Mime
View raw message