Author: toshok
Date: 2006-11-09 13:28:33 -0500 (Thu, 09 Nov 2006)
New Revision: 67622
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
Log:
2006-11-09 Chris Toshok <[EMAIL PROTECTED]>
* PropertyGridView.cs (OnPaint): only call DrawGridItems if we
have a root item. Fixes #79879.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-09 18:26:05 UTC (rev 67621)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-09 18:28:33 UTC (rev 67622)
@@ -1,3 +1,8 @@
+2006-11-09 Chris Toshok <[EMAIL PROTECTED]>
+
+ * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
+ have a root item. Fixes #79879.
+
2006-11-09 Alexander Olk <[EMAIL PROTECTED]>
* FileDialog.cs:
@@ -12,7 +17,6 @@
* FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
for RootFolder if we get a undefined value.
-
2006-11-09 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* StatusBarPanel.cs:
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2006-11-09 18:26:05 UTC (rev 67621)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2006-11-09 18:28:33 UTC (rev 67622)
@@ -205,8 +205,10 @@
e.Graphics.FillRectangle
(ThemeEngine.Current.ResPool.GetSolidBrush (BackColor), ClientRectangle);
int yLoc = -vbar.Value*row_height;
- DrawGridItems(property_grid.root_grid_item.GridItems,
e, 1, ref yLoc);
+ if (property_grid.root_grid_item != null)
+
DrawGridItems(property_grid.root_grid_item.GridItems, e, 1, ref yLoc);
+
UpdateScrollBar();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches