diff options
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/nativenumber/nativenumbersupplier.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx index 756866ad846e..62a7e75278bf 100644 --- a/i18npool/source/nativenumber/nativenumbersupplier.cxx +++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx @@ -586,15 +586,11 @@ OUString getNumberText(const Locale& rLocale, const OUString& rNumberString, for (i = 0; i < len; i++) { sal_Unicode ch = src[i]; - if (isNumber(ch)) + if (isNumber(ch) || ch == aSeparators.DecimalSeparator) { ++count; sBuf.append(ch); } - else if (ch == aSeparators.DecimalSeparator) - // Convert any decimal separator to point - in case libnumbertext has a different one - // for this locale (it seems that point is supported for all locales in libnumbertext) - sBuf.append('.'); else if (ch == aSeparators.ThousandSeparator && count > 0) continue; else if (isMinus(ch) && count == 0) |