Author: jackson
Date: 2006-11-17 11:34:11 -0500 (Fri, 17 Nov 2006)
New Revision: 68065
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 soft splitting a line, mark it as a soft
split line.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-17 16:33:14 UTC (rev 68064)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-17 16:34:11 UTC (rev 68065)
@@ -1,3 +1,8 @@
+2006-11-17 Jackson Harper <[EMAIL PROTECTED]>
+
+ * TextControl.cs: When soft splitting a line, mark it as a soft
+ split line.
+
2006-11-17 Chris Toshok <[EMAIL PROTECTED]>
* XplatUIX11.cs: when scrolling a window with an invalid area, we
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2006-11-17 16:33:14 UTC (rev 68064)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2006-11-17 16:34:11 UTC (rev 68065)
@@ -476,6 +476,7 @@
pos = wrap_pos;
tag.width = wrap_width;
doc.Split(this, tag, pos, true);
+ this.soft_break = true;
len = this.text.Length;
retval = true;
wrapped = true;
@@ -483,6 +484,7 @@
// No suitable wrap position
was found so break right in the middle of a word
tag.width = tag.width + w;
doc.Split(this, tag, pos, true);
+ this.soft_break = true;
len = this.text.Length;
retval = true;
wrapped = true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches