SvxLanguageItem::PutValue: empty locale is not LANGUAGE_NONE

Change-Id: I8d788f53b54a7429124a653417d422db300238d7
This commit is contained in:
Eike Rathke 2012-11-27 21:42:32 +01:00
parent da64cd182e
commit cb523b62a4

View file

@ -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;
}