Author: jackson
Date: 2007-03-28 10:58:40 -0500 (Wed, 28 Mar 2007)
New Revision: 75082
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: If a char delete removes a line ending, we
* need
to update the ending style.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-28 15:41:40 UTC (rev 75081)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-28 15:58:40 UTC (rev 75082)
@@ -1,3 +1,8 @@
+2007-03-28 Jackson Harper <[EMAIL PROTECTED]>
+
+ * TextControl.cs: If a char delete removes a line ending, we need
+ to update the ending style.
+
2007-03-28 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* XplatUIX11.cs: CreateWindow: Remove old default form location code,
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2007-03-28 15:41:40 UTC (rev 75081)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2007-03-28 15:58:40 UTC (rev 75082)
@@ -2503,6 +2503,8 @@
line.Streamline(lines);
}
+ if (pos > line.TextLengthWithoutEnding ())
+ GetLineEnding (line.text.ToString (), 0, out
line.ending);
UpdateView(line, pos);
}
@@ -2573,6 +2575,8 @@
line.Streamline(lines);
}
+ if (pos > line.TextLengthWithoutEnding ())
+ GetLineEnding (line.text.ToString (), 0, out
line.ending);
UpdateView(line, pos);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches