summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-08-09 12:36:58 +0200
committerEike Rathke <erack@redhat.com>2016-08-09 12:51:12 +0200
commit0d386267458b881f15e555186b52f7e2517ceca1 (patch)
tree71fcdac0fd5e653f1d16713c899411b79205ef8e /svl
parent49b06c2e838750a0b5504f5f8367818bfa893806 (diff)
do not resolve system locale when queried, rhbz#1364406 related
When loading older documents that calculated a number format on the fly an inherited but default format of a type could had been applied using the fixed resolved locale instead of the default system locale, which then was stored upon save and remained sticky. This because a format the formula depends on already was applied using the resolved system locale. http://bugs.documentfoundation.org/attachment.cgi?id=78559 of tdf#63267 exhibits the behavior on the hidden sheet 'Festwerte' when unprotected and inspecting number formats in column A under Datum. Change-Id: If23908f259458e988c5164cc5e268bfc9a6a6bcd
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/numfmuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx
index 3e9436fcb2a7..ed122b5b65da 100644
--- a/svl/source/numbers/numfmuno.cxx
+++ b/svl/source/numbers/numfmuno.cxx
@@ -717,7 +717,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
}
else if (aPropertyName == PROPERTYNAME_LOCALE)
{
- lang::Locale aLocale( LanguageTag( pFormat->GetLanguage()).getLocale());
+ lang::Locale aLocale( LanguageTag( pFormat->GetLanguage()).getLocale( false));
aRet <<= aLocale;
}
else if (aPropertyName == PROPERTYNAME_TYPE)