summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-03-20 00:05:49 +0100
committerEike Rathke <erack@redhat.com>2013-03-20 00:06:40 +0100
commite96c7a60c88bc1e3008ebdeafd59327933d6707f (patch)
tree42afcdb9dd2e694bf8400643592025a1e6743b88
parent9e9f39d171cafa035d7b8e74187e25c3581cb89d (diff)
replace decimal separator at correct position, rhbz#919020
Change-Id: I97a652e6a1286726fe21ae580f6dbf5536f9d52d
-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 ) )
{