diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-27 21:42:32 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-27 22:01:30 +0100 |
commit | cb523b62a4a63b70054d7a16385faf5f3a76be28 (patch) | |
tree | d7d205b0c1352c7a21a562aa5b3eae0fca954c42 /editeng | |
parent | da64cd182e9158439c2d256fae48c6e9862dd959 (diff) |
SvxLanguageItem::PutValue: empty locale is not LANGUAGE_NONE
Change-Id: I8d788f53b54a7429124a653417d422db300238d7
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/textitem.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 25f998b047db..d5846a098afb 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -2634,10 +2634,7 @@ bool SvxLanguageItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) if(!(rVal >>= aLocale)) return sal_False; - if (!aLocale.Language.isEmpty() || !aLocale.Country.isEmpty()) - SetValue( LanguageTag( aLocale ).getLanguageType( false)); - else - SetValue(LANGUAGE_NONE); + SetValue( LanguageTag( aLocale ).getLanguageType( false)); } break; } |