forked from amazingfate/loongoffice
Commit 81e1e0a2a671f19950c1bd3c69f9aa24b0c562e7 changed string-to-number procedure from SvNumberFormatter to only use SbxValue::ScanNumIntnl. But the latter can only handle strings with simple numbers, not with dates, times and the like. This change restores use of SvNumberFormatter to convert input strings to number, when SbxValue::ScanNumIntnl fails. The code is re-structured for performance, to avoid creating SvNumberFormatter twice, and repeated calls to GetOUString. Change-Id: I89a4fc041fe24fe00b099ab4fbee371d1f6b5567 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185047 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 33434f16206aaa07f56af8f4c23b05b3c88a2124) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185065 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>