connectivity/source/commontools/formattedcolumnvalue.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0ef605d9abc0639875c4e0757d2250bbe847bccb
Author: Eike Rathke <[email protected]>
Date:   Sat Nov 17 00:16:14 2012 +0100

    use LanguageTag
    
    Change-Id: I75839c1b4a0ddfa9ed5c4f44124c7eabf4005717

diff --git a/connectivity/source/commontools/formattedcolumnvalue.cxx 
b/connectivity/source/commontools/formattedcolumnvalue.cxx
index 3298764..2a34ca2 100644
--- a/connectivity/source/commontools/formattedcolumnvalue.cxx
+++ b/connectivity/source/commontools/formattedcolumnvalue.cxx
@@ -31,6 +31,7 @@
 
 #include <tools/diagnose_ex.h>
 #include <i18npool/mslangid.hxx>
+#include <i18npool/languagetag.hxx>
 #include <comphelper/numbers.hxx>
 #include <comphelper/componentcontext.hxx>
 #include <unotools/sharedunocomponent.hxx>
@@ -164,8 +165,7 @@ namespace dbtools
                 if ( !bHaveFieldFormat )
                 {
                     // fall back to a format key as indicated by the field type
-                    Locale aSystemLocale;
-                    MsLangId::convertLanguageToLocale( 
MsLangId::getSystemLanguage(), aSystemLocale );
+                    Locale aSystemLocale( LanguageTag( 
MsLangId::getSystemLanguage() ).getLocale() );
                     Reference< XNumberFormatTypes > xNumTypes( 
xNumberFormatsSupp->getNumberFormats(), UNO_QUERY_THROW );
                     _rData.m_nFormatKey = getDefaultNumberFormat( _rxColumn, 
xNumTypes, aSystemLocale );
                 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to