summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxscan.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index e4ac19610b4e..68faaf0c81f7 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -141,11 +141,11 @@ SbxError ImpScan( const OUString& rWSrc, double& nVal, SbxDataType& rType,
}
if( *p == cNonIntntlDecSep || *p == cIntntlDecSep )
{
+ // Use the separator that is passed to stringToDouble()
+ aBuf[ p - pStart ] = cIntntlDecSep;
p++;
if( ++decsep > 1 )
continue;
- // Use the separator that is passed to stringToDouble()
- aBuf[ p - pStart ] = cIntntlDecSep;
}
else if( ImpStrChr( pDdEe, *p ) )
{