Author: toshok
Date: 2007-01-11 18:15:12 -0500 (Thu, 11 Jan 2007)
New Revision: 70890

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
Log:
2007-01-11  Chris Toshok  <[EMAIL PROTECTED]>

        * LinkLabel.cs: turns out that LinkLabels are only Selectable if
        they have 1 or more links.  this fixes the crash gert reported.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-11 22:24:03 UTC (rev 70889)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-11 23:15:12 UTC (rev 70890)
@@ -1,3 +1,8 @@
+2007-01-11  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * LinkLabel.cs: turns out that LinkLabels are only Selectable if
+       they have 1 or more links.  this fixes the crash gert reported.
+
 2007-01-11  Andreia Gaita  <[EMAIL PROTECTED]>
 
        * ContainerControl.cs: Remove ContainerSelected flag, not needed

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2007-01-11 22:24:03 UTC (rev 70889)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2007-01-11 23:15:12 UTC (rev 70890)
@@ -543,7 +543,7 @@
                                return;
                        }
 
-                       SetStyle (ControlStyles.Selectable, true);
+                       SetStyle (ControlStyles.Selectable, Links.Count > 0);
 
                        /* don't bother doing the rest if our handle hasn't 
been created */
                        if (!IsHandleCreated)

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

Reply via email to