diff options
Diffstat (limited to 'i18npool/source')
-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 d9bff101a08c..869ff60df4aa 100644 --- a/i18npool/source/nativenumber/nativenumbersupplier.cxx +++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx @@ -673,7 +673,8 @@ OUString NativeNumberSupplierService::getNativeNumberString(const OUString& aNum switch (Casings[nCasing].eCasing) { case CAPITALIZE: - return xCharClass->toTitle(aStr, 0, 1, aLocale) + aStr.copy(1); + return xCharClass->toTitle(aStr, 0, 1, aLocale) + + (aStr.getLength() > 1 ? aStr.copy(1) : OUString()); case UPPER: return xCharClass->toUpper(aStr, 0, aStr.getLength(), aLocale); case TITLE: |