diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/accessibility.cxx | 3 | ||||
-rw-r--r-- | starmath/source/parse.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index e70301dbcaa2..c2d81f3b3b44 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -1009,8 +1009,7 @@ String SmTextForwarder::GetText( const ESelection& rSel ) const String aRet; if (pEditEngine) aRet = pEditEngine->GetText( rSel, LINEEND_LF ); - aRet.ConvertLineEnd(); - return aRet; + return convertLineEnd(aRet, GetSystemLineEnd()); } SfxItemSet SmTextForwarder::GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib ) const diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 34425ab6acc7..787695685f58 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -2443,8 +2443,7 @@ SmNode *SmParser::Parse(const String &rBuffer) { ClearUsedSymbols(); - m_aBufferString = rBuffer; - m_aBufferString.ConvertLineEnd( LINEEND_LF ); + m_aBufferString = convertLineEnd(rBuffer, LINEEND_LF); m_nBufferIndex = 0; m_nTokenIndex = 0; m_Row = 1; @@ -2468,8 +2467,7 @@ SmNode *SmParser::Parse(const String &rBuffer) SmNode *SmParser::ParseExpression(const String &rBuffer) { - m_aBufferString = rBuffer; - m_aBufferString.ConvertLineEnd( LINEEND_LF ); + m_aBufferString = convertLineEnd(rBuffer, LINEEND_LF); m_nBufferIndex = 0; m_nTokenIndex = 0; m_Row = 1; |