Author: jackson
Date: 2007-04-02 14:36:07 -0400 (Mon, 02 Apr 2007)
New Revision: 75294

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: Make sure the attributes get set on the last
        tag.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-04-02 18:05:47 UTC (rev 75293)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-04-02 18:36:07 UTC (rev 75294)
@@ -1,3 +1,8 @@
+2007-04-02  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * TextControl.cs: Make sure the attributes get set on the last
+       tag.
+
 2007-04-02  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency

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 18:05:47 UTC (rev 75293)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2007-04-02 18:36:07 UTC (rev 75294)
@@ -1941,7 +1941,8 @@
 
                                LineTag tag = line.tags;
                                while (tag != null) {
-                                       Console.Write ("\t<tag type='{0}' 
span='{1}->{2}'>", tag.GetType (), tag.start, tag.length);
+                                       Console.Write ("\t<tag type='{0}' 
span='{1}->{2}' font='{3}' color='{4}'>",
+                                                       tag.GetType (), 
tag.start, tag.length, tag.font, tag.color.Color);
                                        Console.Write (tag.Text ());
                                        Console.WriteLine ("</tag>");
                                        tag = tag.next;
@@ -4711,7 +4712,6 @@
                        }
 
                        start_tag = FindTag (line, start);
-
                        tag = start_tag.Break (start);
 
                        while (tag != null && tag.end <= end) {
@@ -4719,7 +4719,7 @@
                                tag = tag.next;
                        }
 
-                       if (end != line.text.Length) {
+                       if (tag.end != end) {
                                /// Now do the last tag
                                end_tag = FindTag (line, end);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to