Kaydet (Commit) e96c7a60 authored tarafından Eike Rathke's avatar Eike Rathke

replace decimal separator at correct position, rhbz#919020

Change-Id: I97a652e6a1286726fe21ae580f6dbf5536f9d52d
üst 9e9f39d1
...@@ -141,11 +141,11 @@ SbxError ImpScan( const OUString& rWSrc, double& nVal, SbxDataType& rType, ...@@ -141,11 +141,11 @@ SbxError ImpScan( const OUString& rWSrc, double& nVal, SbxDataType& rType,
} }
if( *p == cNonIntntlDecSep || *p == cIntntlDecSep ) if( *p == cNonIntntlDecSep || *p == cIntntlDecSep )
{ {
// Use the separator that is passed to stringToDouble()
aBuf[ p - pStart ] = cIntntlDecSep;
p++; p++;
if( ++decsep > 1 ) if( ++decsep > 1 )
continue; continue;
// Use the separator that is passed to stringToDouble()
aBuf[ p - pStart ] = cIntntlDecSep;
} }
else if( ImpStrChr( pDdEe, *p ) ) else if( ImpStrChr( pDdEe, *p ) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment