replace decimal separator at correct position, rhbz#919020

Change-Id: I97a652e6a1286726fe21ae580f6dbf5536f9d52d
This commit is contained in:
Eike Rathke
2013-03-20 00:05:49 +01:00
parent 9e9f39d171
commit e96c7a60c8

View File

@@ -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 ) )
{