If the language is not specified, use the initial language. (fdo#32523)
SvNumberFormatter has many methods that take language as an argument, with the default value of LANGUAGE_DONTKNOW. Most of those methods default to the intialized language if the language is DONTKNOW, except for one variant of GetStandardFormat() ! This caused the internal language to accidentally get set to something else *permanently*. Signed-off-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
fe2e07e730
commit
c8815f1d62
1 changed files with 3 additions and 0 deletions
|
@ -1384,6 +1384,9 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultFormat( short nType )
|
|||
|
||||
sal_uInt32 SvNumberFormatter::GetStandardFormat( short eType, LanguageType eLnge )
|
||||
{
|
||||
if (eLnge == LANGUAGE_DONTKNOW)
|
||||
eLnge = IniLnge;
|
||||
|
||||
sal_uInt32 CLOffset = ImpGenerateCL(eLnge);
|
||||
switch(eType)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue