Quellcode durchsuchen

* TextControl.cs: Increment count by one, since in the update
* view
count - 1 is used.


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

Jackson Harper vor 19 Jahren
Ursprung
Commit
e2bed67a0a

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

@@ -1,3 +1,8 @@
+2006-11-02  Jackson Harper  <[email protected]>
+
+	* TextControl.cs: Increment count by one, since in the update view
+	count - 1 is used.
+
 2006-11-02  Jackson Harper  <[email protected]>
 
 	* TextBoxBase.cs: Use client rectangle not bounds for checking if

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

@@ -2133,7 +2133,7 @@ if (owner.backcolor_set || (owner.Enabled && !owner.read_only)) {
 				}
 			}
 
-			UpdateView(line, lines - old_line_count, pos);
+			UpdateView(line, lines - old_line_count + 1, pos);
 
 			if (update_caret) {
 				// Move caret to the end of the inserted text