use LanguageTag
Change-Id: Ibbe84ddde5c9d7fbcb9920ea76896c44c0cdf387
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user