Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv6919/src/gui
Modified Files:
wxComposeView.cpp
Log Message:
create message files in the native text format, not always the DOS one
Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.276
retrieving revision 1.277
diff -b -u -2 -r1.276 -r1.277
--- wxComposeView.cpp 28 Apr 2002 21:04:45 -0000 1.276
+++ wxComposeView.cpp 29 Apr 2002 15:18:57 -0000 1.277
@@ -3528,5 +3528,7 @@
if ( part->GetType() == EditorContentPart::Type_Text )
{
- if ( !file.Write(part->GetText()) )
+ // call Translate() to ensure that the text has the native line
+ // termination characters
+ if ( !file.Write(wxTextBuffer::Translate(part->GetText())) )
{
wxLogError(_("Cannot write message to file."));
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates