Переглянути джерело

* TextControl.cs: We need to clear the entire selection area
* when
setting the start, otherwise multiline selections are still
visible.


svn path=/trunk/mcs/; revision=67036

Jackson Harper 19 роки тому
батько
коміт
dbc049cda1

+ 6 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,9 @@
+2006-10-27  Jackson Harper  <[email protected]>
+
+	* TextControl.cs: We need to clear the entire selection area when
+	setting the start, otherwise multiline selections are still
+	visible.
+
 2006-10-26  Chris Toshok  <[email protected]>
 
 	* PropertyGridView.cs: 

+ 2 - 3
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs

@@ -3172,15 +3172,14 @@ if (owner.backcolor_set || (owner.Enabled && !owner.read_only)) {
 
 			selection_end_anchor = false;
 
+			
 			if ((selection_end.line != selection_start.line) || (selection_end.pos != selection_start.pos)) {
 				SetSelectionVisible (true);
-
-				// This could be calculated better
-				Invalidate(selection_start.line, selection_start.pos, selection_end.line, selection_end.pos);
 			} else {
 				SetSelectionVisible (false);
 			}
 
+			Invalidate(selection_start.line, selection_start.pos, selection_end.line, selection_end.pos);
 		}
 
 		internal void SetSelectionStart(int character_index) {