diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 06:32:55 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-10 06:32:55 +0200 |
commit | 7a5b0aa0a667ae2ac2d198a37bc3146c5c8e4067 (patch) | |
tree | 8ea072acd98fe5d727e5c4b9acab4056c96e6b4f /i18npool | |
parent | 5ec7a589bed7991ffe8ad9a2f544a6699d159765 (diff) |
Blind fix for red Tinderboxes
Change-Id: I9465943a7e3c0d485e8692e3e1ea0b258d67d120
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/nativenumber/nativenumbersupplier.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx index 51942ef15a07..4d54397e71bd 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]); |