Author: jackson
Date: 2006-11-17 11:38:57 -0500 (Fri, 17 Nov 2006)
New Revision: 68066
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:
Also carry over the current line break to the next
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:34:11 UTC (rev 68065)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-17 16:38:57 UTC (rev 68066)
@@ -1,7 +1,8 @@
2006-11-17 Jackson Harper <[EMAIL PROTECTED]>
* TextControl.cs: When soft splitting a line, mark it as a soft
- split line.
+ split line. Also carry over the current line break to the next
+ line.
2006-11-17 Chris Toshok <[EMAIL PROTECTED]>
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:34:11 UTC (rev 68065)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2006-11-17 16:38:57 UTC (rev 68066)
@@ -475,7 +475,7 @@
if ((wrap_pos > 0) && (wrap_pos != len)
&& (widths[pos] + w) + 27 > (doc.viewport_width - this.right_indent)) {
pos = wrap_pos;
tag.width = wrap_width;
- doc.Split(this, tag, pos, true);
+ doc.Split(this, tag, pos,
this.soft_break);
this.soft_break = true;
len = this.text.Length;
retval = true;
@@ -483,7 +483,7 @@
} else if ((widths[pos] + w) >
(doc.viewport_width - this.right_indent)) {
// 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);
+ doc.Split(this, tag, pos,
this.soft_break);
this.soft_break = true;
len = this.text.Length;
retval = true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches