Author: mkestner
Date: 2006-10-31 19:35:24 -0500 (Tue, 31 Oct 2006)
New Revision: 67200

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

2006-10-31  Mike Kestner  <[EMAIL PROTECTED]>

        * CheckedListBox.cs : off by one error in returned index from
        ObjectCollection.Add.  Fixes #79758.


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-01 00:17:14 UTC (rev 67199)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-01 00:35:24 UTC (rev 67200)
@@ -1,3 +1,8 @@
+2006-10-31  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * CheckedListBox.cs : off by one error in returned index from
+       ObjectCollection.Add.  Fixes #79758.
+
 2006-10-31  Chris Toshok  <[EMAIL PROTECTED]>
 
        * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckedListBox.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckedListBox.cs    
    2006-11-01 00:17:14 UTC (rev 67199)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckedListBox.cs    
    2006-11-01 00:35:24 UTC (rev 67200)
@@ -386,7 +386,7 @@
                                if (check == CheckState.Checked)
                                        owner.OnItemCheck (new 
ItemCheckEventArgs (Count-1, check, CheckState.Unchecked));
                                owner.UpdateCollections ();
-                               return Count;
+                               return Count - 1;
                        }
                }
 

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

Reply via email to