summaryrefslogtreecommitdiffstats
path: root/sc/source/filter/excel/xlformula.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xlformula.cxx')
-rw-r--r--sc/source/filter/excel/xlformula.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx
index 29c0bb136f2d..4af76f08c08c 100644
--- a/sc/source/filter/excel/xlformula.cxx
+++ b/sc/source/filter/excel/xlformula.cxx
@@ -677,7 +677,7 @@ void XclTokenArrayHelper::ConvertStringToList( ScTokenArray& rScTokArr, sal_Unic
{
String aToken( aString.GetToken( 0, cStringSep, nStringIx ) );
if( bTrimLeadingSpaces )
- aToken.EraseLeadingChars( ' ' );
+ aToken = comphelper::string::stripStart(aToken, ' ');
if( nToken > 0 )
rScTokArr.AddOpCode( ocSep );
rScTokArr.AddString( aToken );