Author: ivanz
Date: 2008-01-31 11:28:57 -0500 (Thu, 31 Jan 2008)
New Revision: 94474

Modified:
   
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
Log:
2008-01-31  Ivan N. Zlatev  <[EMAIL PROTECTED]>

         * PropertyGridView.cs: Fix a NRE on double click when there is no
         selected object.



Modified: 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
    2008-01-31 16:23:47 UTC (rev 94473)
+++ 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
    2008-01-31 16:28:57 UTC (rev 94474)
@@ -1,3 +1,8 @@
+2008-01-31  Ivan N. Zlatev  <[EMAIL PROTECTED]>
+
+        * PropertyGridView.cs: Fix a NRE on double click when there is no
+        selected object.
+
 2008-01-28  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * TableLayoutPanel.cs: Draw the table border at 0,0 instead of

Modified: 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
===================================================================
--- 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
  2008-01-31 16:23:47 UTC (rev 94473)
+++ 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
  2008-01-31 16:28:57 UTC (rev 94474)
@@ -145,7 +145,7 @@
 
                protected override void OnDoubleClick (EventArgs e) 
                {
-                       if (property_grid.SelectedGridItem.Expandable)
+                       if (property_grid.SelectedGridItem != null && 
property_grid.SelectedGridItem.Expandable)
                                property_grid.SelectedGridItem.Expanded = 
!property_grid.SelectedGridItem.Expanded;
                        else
                                ToggleValue 
((GridEntry)property_grid.SelectedGridItem);

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

Reply via email to