Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv17863/src/gui
Modified Files:
wxComposeView.cpp
Log Message:
clear the text in composer if the external editor was used to delete all the text
instead of leaving the composer unchanged (fixes bug 686)
Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.295
retrieving revision 1.296
diff -b -u -2 -r1.295 -r1.296
--- wxComposeView.cpp 15 Aug 2002 00:52:17 -0000 1.295
+++ wxComposeView.cpp 2 Sep 2002 00:33:55 -0000 1.296
@@ -2996,9 +2996,14 @@
if ( lenFile == 0 )
{
+ if ( insMode != MessageEditor::Insert_Replace )
+ {
wxLogVerbose(_("File '%s' is empty, no text to insert."),
filename.c_str());
return true;
}
-
+ //else: replace old text with new (empty) one
+ }
+ else // non empty file
+ {
char *p = text.GetWriteBuf(lenFile + 1);
p[lenFile] = '\0';
@@ -3007,4 +3012,5 @@
text.UngetWriteBuf();
+ }
}
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates