From e40b541d7ae6acdcfda19e54a12a4dbc59bfbd09 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 23 Dec 2024 09:31:28 +0100 Subject: Fix a copypasta From commit 9e9f39d171cafa035d7b8e74187e25c3581cb89d (resolved rhbz#919020 Basic CDbl() and CSng() scan localized number, 2013-03-19) Change-Id: I871d7fb06ccb5d15723f7acfb57701890607055f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179197 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- basic/source/sbx/sbxscan.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index dbb45c34b88e..729fce58aace 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -107,7 +107,7 @@ ErrCode ImpScan( const OUString& rWSrc, double& nVal, SbxDataType& rType, bMinus = true; } if( rtl::isAsciiDigit( *p ) || ((*p == cNonIntntlDecSep || *p == cIntntlDecSep || - (cIntntlDecSep && *p == cIntntlGrpSep) || (cIntntlDecSepAlt && *p == cIntntlDecSepAlt)) && + (cIntntlGrpSep && *p == cIntntlGrpSep) || (cIntntlDecSepAlt && *p == cIntntlDecSepAlt)) && rtl::isAsciiDigit( *(p+1) ))) { // tdf#118442: Whitespace and minus are skipped; store the position to calculate index -- cgit