[Libreoffice-commits] core.git: i18npool/source

Julien Nabet serval2412 at yahoo.fr
Fri May 9 21:33:37 PDT 2014


 i18npool/source/nativenumber/nativenumbersupplier.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7a5b0aa0a667ae2ac2d198a37bc3146c5c8e4067
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat May 10 06:32:55 2014 +0200

    Blind fix for red Tinderboxes
    
    Change-Id: I9465943a7e3c0d485e8692e3e1ea0b258d67d120

diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 51942ef..4d54397 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -224,7 +224,8 @@ OUString SAL_CALL AsciiToNative( const OUString& inStr, sal_Int32 startPos, sal_
                     len = 0;
                 }
                 if (i < nCount) {
-                    if (doDecimal = (!doDecimal && i < nCount-1 && isDecimal(str[i]) && isNumber(str[i+1])))
+                    doDecimal = (!doDecimal && i < nCount-1 && isDecimal(str[i]) && isNumber(str[i+1]));
+                    if (doDecimal)
                         newStr[count] = (DecimalChar[number->number] ? DecimalChar[number->number] : str[i]);
                     else if (i < nCount-1 && isMinus(str[i]) && isNumber(str[i+1]))
                         newStr[count] = (MinusChar[number->number] ? MinusChar[number->number] : str[i]);


More information about the Libreoffice-commits mailing list