diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 11:48:17 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 11:48:17 +0000 |
commit | e13f67dc82d32907989162f2e368fb71b811da40 (patch) | |
tree | 49a6b7298dda299ae3db4d0c56f9d00edca938ad /basic/source | |
parent | 06b3fd2ba700d864948cff9ba0579b1549e12590 (diff) |
INTEGRATION: CWS gh15 (1.23.8); FILE MERGED
2008/07/31 19:38:13 gh 1.23.8.3: #i47386#changed to UNIX lineends (not MAC)
2008/05/09 14:09:06 gh 1.23.8.2: #i47386#change fileformat to Unix lineends
2008/05/09 13:46:40 gh 1.23.8.1: #i47386#change fileformat to Unix lineends
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/app/textedit.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/basic/source/app/textedit.cxx b/basic/source/app/textedit.cxx index 0a3a9eafef81..baaf487c0e76 100644 --- a/basic/source/app/textedit.cxx +++ b/basic/source/app/textedit.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: textedit.cxx,v $ - * $Revision: 1.23 $ + * $Revision: 1.24 $ * * This file is part of OpenOffice.org. * @@ -133,9 +133,6 @@ void TextEditImp::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { if ( ((TextEdit*)(pAppEdit->pDataEdit))->GetBreakpointWindow() ) ((TextEdit*)(pAppEdit->pDataEdit))->GetBreakpointWindow()->AdjustBreakpoints( rTextHint.GetValue()+1, TRUE ); - - // Lstiges anpassen fr 2 Zeichen am Zeilenende statt einem(Hartverdrateter Default) - pTextEngine->SetMaxTextLen( STRING_MAXLEN - pTextEngine->GetParagraphCount() ); } else if( rTextHint.GetId() == TEXT_HINT_PARAREMOVED ) { @@ -855,12 +852,11 @@ DBG_CHKTHIS(TextEdit,0); if ( bFileWasUTF8 || bSaveAsUTF8 ) { aStrm << TT_SIGNATURE_FOR_UNICODE_TEXTFILES; - aStrm << sal_Char(_CR); aStrm << sal_Char(_LF); aFileEncoding = RTL_TEXTENCODING_UTF8; } String aSave = GetText(); - aSave.ConvertLineEnd(LINEEND_CRLF); + aSave.ConvertLineEnd(LINEEND_LF); aStrm << ByteString( aSave, aFileEncoding ).GetBuffer(); if( aStrm.GetError() != SVSTREAM_OK ) bOk = FALSE; |