[ooo-build-commit] .: patches/dev300

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu Sep 23 06:15:01 PDT 2010


 patches/dev300/svx-i18n-ordinal-autocorr.diff |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

New commits:
commit 3c42dc22f8829eb58497a12d13aa0b8d47034839
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Thu Sep 23 15:13:59 2010 +0200

    Fixed a build break in sc due to XOrdinalSuffix changes
    
    This hack isn't optimal as it only takes the first suffix.

diff --git a/patches/dev300/svx-i18n-ordinal-autocorr.diff b/patches/dev300/svx-i18n-ordinal-autocorr.diff
index 46840da..b70ebc0 100644
--- a/patches/dev300/svx-i18n-ordinal-autocorr.diff
+++ b/patches/dev300/svx-i18n-ordinal-autocorr.diff
@@ -274,3 +274,21 @@ index e88c900..083e67f 100644
  };
  
  //============================================================================
+diff --git sc/source/core/data/globalx.cxx sc/source/core/data/globalx.cxx
+index f1a1c8e..36314da 100644
+--- sc/source/core/data/globalx.cxx
++++ sc/source/core/data/globalx.cxx
+@@ -159,8 +159,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 ooo-build-commit mailing list