diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-10 21:20:05 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-10 21:20:20 +0200 |
commit | a0f20ee1d5665ad8f6c686b04a16462e4979a29f (patch) | |
tree | 0a7dd28da44330bf8402b9a8b5dad11c891aaccb /editeng/source | |
parent | comparing only language and country is now insufficient (diff) | |
download | core-a0f20ee1d5665ad8f6c686b04a16462e4979a29f.tar.gz core-a0f20ee1d5665ad8f6c686b04a16462e4979a29f.zip |
use LanguageTag
Change-Id: Ibbe84ddde5c9d7fbcb9920ea76896c44c0cdf387
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index b06e69ad85c4..d06b9d204815 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -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 ) |