Author: jackson
Date: 2007-04-02 15:13:19 -0400 (Mon, 02 Apr 2007)
New Revision: 75297
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:
- Still have to do the end tag if we have stepped all the ways
to
the end.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-02 19:11:27 UTC (rev 75296)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-02 19:13:19 UTC (rev 75297)
@@ -2,6 +2,8 @@
* TextControl.cs: Make sure the attributes get set on the last
tag.
+ - Still have to do the end tag if we have stepped all the ways to
+ the end.
2007-04-02 Sebastien Pouliot <[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
2007-04-02 19:11:27 UTC (rev 75296)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
2007-04-02 19:13:19 UTC (rev 75297)
@@ -4719,14 +4719,15 @@
tag = tag.next;
}
- if (tag != null && tag.end != end) {
- /// Now do the last tag
- end_tag = FindTag (line, end);
+ if (tag != null && tag.end == end)
+ return retval;
- if (end_tag != null) {
- end_tag.Break (end);
- SetFormat (end_tag, font, color,
back_color, specified);
- }
+ /// Now do the last tag
+ end_tag = FindTag (line, end);
+
+ if (end_tag != null) {
+ end_tag.Break (end);
+ SetFormat (end_tag, font, color, back_color,
specified);
}
return retval;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches