Author: jackson
Date: 2006-11-13 10:44:19 -0500 (Mon, 13 Nov 2006)
New Revision: 67760
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
* TextBoxBase.cs: Don't select the word if we are on a line with
no text.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-13 15:36:24 UTC (rev 67759)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-13 15:44:19 UTC (rev 67760)
@@ -1,3 +1,8 @@
+2006-11-13 Jackson Harper <[EMAIL PROTECTED]>
+
+ * TextBoxBase.cs: Don't select the word if we are on a line with
+ no text.
+
2006-11-13 Gert Driesen <[EMAIL PROTECTED]>
* TreeNodeCollection.cs: Avoid duplicating indexer code.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-11-13 15:36:24 UTC (rev 67759)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-11-13 15:44:19 UTC (rev 67760)
@@ -1582,6 +1582,9 @@
int start = document.caret.pos;
int end = document.caret.pos;
+ if (s.Length < 1)
+ return;
+
if (start > 0) {
start--;
end--;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches