Author: jackson
Date: 2007-04-04 14:14:40 -0400 (Wed, 04 Apr 2007)
New Revision: 75400
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:
* TextControl.cs: When we delete multiple selection lines
invalidate the selection area, don't need to do that for single
lines because the final update view will handle it.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-04 17:08:31 UTC (rev 75399)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-04 18:14:40 UTC (rev 75400)
@@ -1,3 +1,9 @@
+2007-04-04 Jackson Harper <[EMAIL PROTECTED]>
+
+ * TextControl.cs: When we delete multiple selection lines
+ invalidate the selection area, don't need to do that for single
+ lines because the final update view will handle it.
+
2007-04-04 Jonathan Pobst <[EMAIL PROTECTED]>
* Control.cs: When we CreateControl, we need to also create all of the
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2007-04-04 17:08:31 UTC (rev 75399)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2007-04-04 18:14:40 UTC (rev 75400)
@@ -3539,8 +3539,11 @@
undo.RecordDeleteString
(selection_start.line, selection_start.pos, selection_end.line,
selection_end.pos);
+ InvalidateSelectionArea ();
+
// Delete first line
DeleteChars(selection_start.tag,
selection_start.pos, selection_start.line.text.Length - selection_start.pos);
+ selection_start.line.recalc = true;
// Delete last line
DeleteChars(selection_end.line.tags, 0,
selection_end.pos);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches