ooo-build r14395 - in branches/ooo-build-3-0: . patches/dev300



Author: kyoshida
Date: Wed Oct 22 17:41:01 2008
New Revision: 14395
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14395&view=rev

Log:
2008-10-22  Kohei Yoshida  <kyoshida novell com>

	* patches/dev300/calc-formula-variable-separators-sc.diff: reverted the
	last change.  We can't really use UI locale here since the UI locale
	tends to exclude country name.


Modified:
   branches/ooo-build-3-0/ChangeLog
   branches/ooo-build-3-0/patches/dev300/calc-formula-variable-separators-sc.diff

Modified: branches/ooo-build-3-0/patches/dev300/calc-formula-variable-separators-sc.diff
==============================================================================
--- branches/ooo-build-3-0/patches/dev300/calc-formula-variable-separators-sc.diff	(original)
+++ branches/ooo-build-3-0/patches/dev300/calc-formula-variable-separators-sc.diff	Wed Oct 22 17:41:01 2008
@@ -59,7 +59,7 @@
  {
      init(xMap->getGrammar());
  
-@@ -244,21 +245,68 @@ ScOpCodeList::ScOpCodeList( USHORT nRID, ScCompiler::NonConstOpCodeMapPtr xMap )
+@@ -244,21 +245,69 @@ ScOpCodeList::ScOpCodeList( USHORT nRID, ScCompiler::NonConstOpCodeMapPtr xMap )
      FreeResource();
  }
  
@@ -82,13 +82,14 @@
  
 -        // TODO: Check for more locales.
 -    }
-+    // Be sure to use the UI locale.
-+    const lang::Locale& rLocale = Application::GetSettings().GetUILocale();
-+    const LocaleDataWrapper& rLocaleData = Application::GetSettings().GetUILocaleDataWrapper();
++    if (!ScGlobal::pLocaleData || !ScGlobal::pLocale)
++        return;
++
++    const LocaleDataWrapper& rLocaleData = *ScGlobal::pLocaleData;
++    const lang::Locale& rLocale = *ScGlobal::pLocale;
 +    const i18n::LocaleDataItem& aItem = rLocaleData.getLocaleItem();
 +    const String& rDecSep  = rLocaleData.getNumDecimalSep();
 +    const String& rListSep = rLocaleData.getListSep();
-+
 +    if (rListSep.Len() != 1 || rDecSep.Len() != 1)
 +        // Something is wrong.  Stick with the default separators.
 +        return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]