* TextBoxBase.cs: Fix off by one, since these are one-based.
authorJackson Harper <jackson@novell.com>
Mon, 4 Dec 2006 22:31:16 +0000 (22:31 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 4 Dec 2006 22:31:16 +0000 (22:31 -0000)
svn path=/trunk/mcs/; revision=69002

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs

index f52510d8b6e298b411a1e7c64d4360ce81dd5445..ccbedef6be0ebe8e972a5db5ea0cf69883731bbc 100644 (file)
@@ -1,3 +1,7 @@
+2006-12-04  Jackson Harper  <jackson@ximian.com>
+
+       * TextBoxBase.cs: Fix off by one, since these are one-based.
+
 2006-12-04  Chris Toshok  <toshok@ximian.com>
 
        * DataGridTextBoxColumn.cs: remove some spew.
index 87f7f41df23f08af30b6df87d0e9abc0acfe3941..73da93ab0be1f4500b06a9768afff6361176fd96 100644 (file)
@@ -313,7 +313,7 @@ namespace System.Windows.Forms {
                                        do {
                                                line = document.GetLine (i++);
                                                lt.Append (line.text.ToString ());
-                                       } while (line.soft_break && i < count);
+                                       } while (line.soft_break && i <= count);
 
                                        lines.Add (lt.ToString ());     
                                }