* TextControl.cs (RecalculateLine): Only wrap if the wrap point is
neither the beginning nor the end of the line (Fixes bug #76479)
svn path=/trunk/mcs/; revision=54685
+2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
+
+ * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
+ neither the beginning nor the end of the line (Fixes bug #76479)
+
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
}
if (doc.wrap) {
- if ((widths[pos] + w) + 27 > (doc.viewport_width - this.right_indent)) {
+ 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);