Author: jpobst
Date: 2007-10-09 12:19:37 -0400 (Tue, 09 Oct 2007)
New Revision: 87186

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:
2007-10-09  Jonathan Pobst  <[EMAIL PROTECTED]>

        * TextControl.cs: Fix how we calculate the end of the tag we are 
drawing.
        [Fixes bug #325592]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-09 16:12:44 UTC (rev 87185)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-09 16:19:37 UTC (rev 87186)
@@ -1,3 +1,8 @@
+2007-10-09  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * TextControl.cs: Fix how we calculate the end of the tag we are 
drawing.
+       [Fixes bug #325592]
+
 2007-10-08  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2007-10-09 16:12:44 UTC (rev 87185)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2007-10-09 16:19:37 UTC (rev 87186)
@@ -1504,7 +1504,7 @@
                                                tag.Draw (g, current_brush,
                                                                line.X - 
viewport_x,
                                                                line_y + 
tag.shift,
-                                                               old_tag_pos - 
1, Math.Max (tag.Length, tag_pos - old_tag_pos),
+                                                               old_tag_pos - 
1, Math.Min (tag.start + tag.Length, tag_pos) - 1,
                                                                text.ToString() 
);
                                        }
                                        tag = tag.next;

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

Reply via email to