Author: spitzak
Date: 2007-07-13 06:44:36 -0700 (Fri, 13 Jul 2007)
New Revision: 5925
Log:
Multi-line text editor deleted all the text if you hit the right-hand
ctrl key or the compose key. Bug from the mailing list.


Modified:
   trunk/src/TextEditor.cxx

Modified: trunk/src/TextEditor.cxx
===================================================================
--- trunk/src/TextEditor.cxx    2007-07-13 13:25:31 UTC (rev 5924)
+++ trunk/src/TextEditor.cxx    2007-07-13 13:44:36 UTC (rev 5925)
@@ -396,8 +396,8 @@
   int del;
   if (fltk::compose(del)) {
     if (del) buffer()->select(insert_position()-del, insert_position());
-    kill_selection(this);
     if (event_length()) {
+      kill_selection(this);
       if (insert_mode()) insert(event_text());
       else overstrike(event_text());
     }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to