summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-10 21:20:05 +0200
committerEike Rathke <erack@redhat.com>2013-07-10 21:20:20 +0200
commita0f20ee1d5665ad8f6c686b04a16462e4979a29f (patch)
tree0a7dd28da44330bf8402b9a8b5dad11c891aaccb
parentc60257f4deddf9b82fc462921e9d25f3a3d56e67 (diff)
use LanguageTag
Change-Id: Ibbe84ddde5c9d7fbcb9920ea76896c44c0cdf387
-rw-r--r--editeng/source/misc/svxacorr.cxx5
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 )