Author: jackson
Date: 2006-11-13 13:58:27 -0500 (Mon, 13 Nov 2006)
New Revision: 67775

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
Log:

        oops commited some debug code.



Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2006-11-13 18:55:51 UTC (rev 67774)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2006-11-13 18:58:27 UTC (rev 67775)
@@ -1888,11 +1888,7 @@
                                                        // regular drawing, no 
selection to deal with
                                                        
//g.DrawString(s.Substring(tag.start-1, tag.length), tag.font, tag.color, tag.X 
+ line.align_shift - viewport_x, line.Y + tag.shift  - viewport_y, 
StringFormat.GenericTypographic);
                                                        if (owner.is_enabled) {
-                                                               try {
-                                                                       
g.DrawString(text.ToString(tag.start-1, tag.length), tag.font, tag.color, tag.X 
+ line.align_shift - viewport_x, line.Y + tag.shift  - viewport_y, 
StringFormat.GenericTypographic);
-                                                               } catch 
(Exception e) {
-                                                                       
Console.WriteLine ("CRASHED:  {0}  {1}  {2}", text, tag.start, tag.length);
-                                                               }
+                                                               
g.DrawString(text.ToString(tag.start-1, tag.length), tag.font, tag.color, tag.X 
+ line.align_shift - viewport_x, line.Y + tag.shift  - viewport_y, 
StringFormat.GenericTypographic);
                                                        } else {
                                                                Color a;
                                                                Color b;

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

Reply via email to