use LanguageTag

Change-Id: Ibbe84ddde5c9d7fbcb9920ea76896c44c0cdf387
This commit is contained in:
Eike Rathke
2013-07-10 21:20:05 +02:00
parent c60257f4de
commit a0f20ee1d5

View File

@@ -621,11 +621,10 @@ sal_Bool SvxAutoCorrect::FnAddNonBrkSpace(
bool bRet = false;
CharClass& rCC = GetCharClass( eLang );
const lang::Locale rLocale = rCC.getLanguageTag().getLocale( );
if ( rLocale.Language == OUString( "fr" ) )
if ( rCC.getLanguageTag().getLanguage() == "fr" )
{
bool bFrCA = rLocale.Country == OUString( "CA" );
bool bFrCA = (rCC.getLanguageTag().getCountry() == "CA");
OUString allChars = OUString( ":;?!%" );
OUString chars( allChars );
if ( bFrCA )