diff options
author | Eike Rathke <erack@redhat.com> | 2016-08-09 12:36:58 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-09 20:49:03 +0000 |
commit | 6f358f7fe5bc0144c573028b273f26f632bca50a (patch) | |
tree | d117109a9c7e02b4c9c4f90c4a047d4ee16779fc /svl | |
parent | 0ace5d2c25042cc03e42d4d7b8cfc47d031fa99c (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
(cherry picked from commit 0d386267458b881f15e555186b52f7e2517ceca1)
Reviewed-on: https://gerrit.libreoffice.org/28004
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/numfmuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx index 0f87d6809b5e..e349d816c38d 100644 --- a/svl/source/numbers/numfmuno.cxx +++ b/svl/source/numbers/numfmuno.cxx @@ -723,7 +723,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) |