diff options
Diffstat (limited to 'editeng/source/rtf/svxrtf.cxx')
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 45fd74be14de..c57d3c520641 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -812,9 +812,9 @@ void SvxRTFParser::ClearAttrStack() String& SvxRTFParser::DelCharAtEnd( String& rStr, const sal_Unicode cDel ) { if( rStr.Len() && ' ' == rStr.GetChar( 0 )) - rStr.EraseLeadingChars(); + rStr = comphelper::string::stripStart(rStr, ' '); if( rStr.Len() && ' ' == rStr.GetChar( rStr.Len()-1 )) - rStr.EraseTrailingChars(); + rStr = comphelper::string::stripEnd(rStr, ' '); if( rStr.Len() && cDel == rStr.GetChar( rStr.Len()-1 )) rStr.Erase( rStr.Len()-1 ); return rStr; |