svl/source/numbers/zforfind.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 734407da075a5466a908386e74f05de7c0f79c2e
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Sep 21 14:48:08 2025 +0500
Commit:     Miklos Vajna <[email protected]>
CommitDate: Thu Oct 2 09:04:09 2025 +0200

    ImpSvNumberInputScan::StringToDouble doesn't handle scientific notation
    
    Pass respective flags to from_chars, which may shave a cycle or two :-)
    
    Change-Id: I9eec84548ec9b17e7ce403a9a9befab732c30977
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191286
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>
    (cherry picked from commit 0410842d9f2b3a8de2112e0224c76628656be60f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191302
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 8e18d86d3d98..df8308b69f1f 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -177,7 +177,7 @@ double ImpSvNumberInputScan::StringToDouble( 
std::u16string_view aStr, bool bFor
 
     double result = 0;
     (void)fast_float::from_chars(
-        buf, p, result, fast_float::chars_format::general | 
fast_float::chars_format::no_infnan);
+        buf, p, result, fast_float::chars_format::fixed | 
fast_float::chars_format::no_infnan);
     return result;
 }
 

Reply via email to