Author: jpobst
Date: 2007-12-02 23:59:26 -0500 (Sun, 02 Dec 2007)
New Revision: 90538

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

        * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
        a Link is manually added to the Links collection, we need to set
        its owner, so it can invalidate properly.
        [Fixes bug #344012]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-03 02:28:10 UTC (rev 90537)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-03 04:59:26 UTC (rev 90538)
@@ -1,3 +1,10 @@
+2007-12-02  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
+       a Link is manually added to the Links collection, we need to set
+       its owner, so it can invalidate properly.
+       [Fixes bug #344012]
+
 2007-11-24  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
        * ListView.cs: When changing ListViewItem.Position (which calls

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2007-12-03 02:28:10 UTC (rev 90537)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2007-12-03 04:59:26 UTC (rev 90538)
@@ -874,6 +874,10 @@
                                        active = value;
                                }
                        }
+
+                       internal LinkLabel Owner {
+                               set { owner = value; }
+                       }
                        #endregion
 
                        private void Invalidate ()
@@ -963,6 +967,7 @@
 #endif
                        int Add (Link link)
                        {
+                               link.Owner = owner;
                                /* remove the default 0,-1 link */
                                if (IsDefault) {
                                        /* don't call Clear() here to save the 
additional CreateLinkPieces */

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

Reply via email to