Author: jpobst
Date: 2007-12-27 10:23:32 -0500 (Thu, 27 Dec 2007)
New Revision: 91943

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

        * ToolStrip.cs: Previous change should be != null, not == null.
        Thanks Gert!

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-27 15:19:48 UTC (rev 91942)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-27 15:23:32 UTC (rev 91943)
@@ -1,5 +1,10 @@
 2007-12-27  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * ToolStrip.cs: Previous change should be != null, not == null.
+       Thanks Gert!
+
+2007-12-27  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
        user may have moved the mouse off the current item during the event.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs     
2007-12-27 15:19:48 UTC (rev 91942)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs     
2007-12-27 15:23:32 UTC (rev 91943)
@@ -948,7 +948,7 @@
                                OnItemClicked (new 
ToolStripItemClickedEventArgs (mouse_currently_over));
                                        
                                // Fire the item's MouseUp event
-                               if (mouse_currently_over == null)
+                               if (mouse_currently_over != null)
                                        mouse_currently_over.FireEvent (mea, 
ToolStripItemEventType.MouseUp);
 
                                // The event handler may have blocked until the 
mouse moved off of the ToolStripItem

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

Reply via email to