diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-12-22 22:52:04 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-12-22 22:58:05 -0500 |
commit | 90c9dcfde572f227eae0760066af5b8a9d5d9218 (patch) | |
tree | 820acdefb127c6803a27accfd84206ac606243d9 | |
parent | 4d210dc73ce206f7ca4cec302acde478489ecede (diff) |
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*.
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index a5af5a8a9c..2b1481d63b 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -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) { |