[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu Apr 7 09:29:22 PDT 2011


 sc/source/core/data/globalx.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 38e8f09e1562899515276698a0efe3e4f9e804ce
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Thu Apr 7 13:33:47 2011 +0200

    i#20348: made the ordinal suffixe autocorrection internationalized

diff --git a/sc/source/core/data/globalx.cxx b/sc/source/core/data/globalx.cxx
index cce88a1..0a6df7c 100644
--- a/sc/source/core/data/globalx.cxx
+++ b/sc/source/core/data/globalx.cxx
@@ -158,8 +158,12 @@ String ScGlobal::GetOrdinalSuffix( sal_Int32 nNumber)
     {
         try
         {
-            return xOrdinalSuffix->getOrdinalSuffix( nNumber,
+            uno::Sequence< rtl::OUString > aSuffixes = xOrdinalSuffix->getOrdinalSuffix( nNumber,
                     ScGlobal::pLocaleData->getLocale());
+            if ( aSuffixes.getLength() > 0 )
+                return aSuffixes[0];
+            else
+                return String();
         }
         catch ( Exception& )
         {


More information about the Libreoffice-commits mailing list