summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorDaniel Kamil Kozar <dkk089@gmail.com>2022-05-03 02:45:13 +0200
committerEike Rathke <erack@redhat.com>2022-05-06 14:16:12 +0200
commita88419f54b8aa9c23cd80e04bc47f1b5ef3931ca (patch)
tree4aaf6f3d6783b46fa8bae02563460a7eb53b8aa3 /svl
parent2490715c112699487915865f4267a880fe7bc4b3 (diff)
tdf#148383: Obtain start/end strings always in system locale
ScFillSeriesDlg always expects the strings describing the start and end values to be in the system locale. This change ensures that and fixes the bug where using non-locale-default data in the Fill Series dialog leads to an error. Change-Id: I25eafa2174294dc35a63473a54c529c2d7bd87ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132532 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zforlist.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 1ea60fc81784..c1d45cc9bd60 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -1676,7 +1676,7 @@ sal_uInt32 SvNumberFormatter::GetEditFormat( double fNumber, sal_uInt32 nFIndex,
void SvNumberFormatter::GetInputLineString(const double& fOutNumber,
sal_uInt32 nFIndex,
OUString& sOutString,
- bool bFiltering)
+ bool bFiltering, bool bForceSystemLocale)
{
::osl::MutexGuard aGuard( GetInstanceMutex() );
const Color* pColor;
@@ -1716,7 +1716,8 @@ void SvNumberFormatter::GetInputLineString(const double& fOutNumber,
bPrecChanged = true;
}
- sal_uInt32 nKey = GetEditFormat( fOutNumber, nRealKey, eType, pFormat);
+ sal_uInt32 nKey = GetEditFormat( fOutNumber, nRealKey, eType, pFormat,
+ bForceSystemLocale ? LANGUAGE_SYSTEM : LANGUAGE_DONTKNOW);
// if bFiltering true keep the nRealKey format
if ( nKey != nRealKey && !bFiltering )
{