Author: jackson
Date: 2007-04-21 01:35:16 -0400 (Sat, 21 Apr 2007)
New Revision: 76037

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

        * TreeView.cs: Dont try to unhighlight the selected node if
        * there
        isn't a selected node.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-04-21 05:25:24 UTC (rev 76036)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-04-21 05:35:16 UTC (rev 76037)
@@ -1,5 +1,10 @@
 2007-04-21  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * TreeView.cs: Dont try to unhighlight the selected node if there
+       isn't a selected node.
+
+2007-04-21  Jackson Harper  <[EMAIL PROTECTED]>
+
        * UpDownBase.cs:
        * TextBoxBase.cs:
        * ListView.cs:

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs      
2007-04-21 05:25:24 UTC (rev 76036)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs      
2007-04-21 05:35:16 UTC (rev 76037)
@@ -1828,7 +1828,7 @@
                        if (!select_mmove)
                                return;
 
-                       if (e.Button == MouseButtons.Right) {
+                       if (e.Button == MouseButtons.Right && selected_node != 
null) {
                                Invalidate (highlighted_node.Bounds);
                                highlighted_node = selected_node;
                                Invalidate (selected_node.Bounds);

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

Reply via email to