diff options
author | Serge Krot <Serge.Krot@cib.de> | 2018-10-05 21:17:44 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-10-22 16:01:27 +0200 |
commit | e50f90bd21dc1116e5f1defc73f230ef1b687315 (patch) | |
tree | 45d7516fbbac8a5772f2b04878049849edcf1af7 /svl | |
parent | 9c51e6fb8915bb084d25a58a6eb217f17ecf308b (diff) |
sc: avoid checking for time formats in case of SvNumFormatType::NUMBER
Change-Id: I565506d58f2dd94a6c2c5e1c4a2000ce1f9752cf
Reviewed-on: https://gerrit.libreoffice.org/61445
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'svl')
-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 023bc3788793..414084b4e89b 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -1497,6 +1497,9 @@ sal_uInt32 SvNumberFormatter::GetEditFormat( double fNumber, sal_uInt32 nFIndex, else nKey = GetFormatIndex( NF_DATETIME_SYS_DDMMYYYY_HHMMSS, eLang ); break; + case SvNumFormatType::NUMBER: + nKey = GetStandardFormat( eType, eLang ); + break; default: nKey = GetStandardFormat( fNumber, nFIndex, eType, eLang ); } |