Author: toshok
Date: 2006-11-15 11:31:21 -0500 (Wed, 15 Nov 2006)
New Revision: 67939
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-15 Chris Toshok <[EMAIL PROTECTED]>
* PropertyGridView.cs: keep from crashing on mouse move/down when
the property grid is empty.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-15 16:28:28 UTC (rev 67938)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-15 16:31:21 UTC (rev 67939)
@@ -1,3 +1,8 @@
+2006-11-15 Chris Toshok <[EMAIL PROTECTED]>
+
+ * PropertyGridView.cs: keep from crashing on mouse move/down when
+ the property grid is empty.
+
2006-11-14 Jackson Harper <[EMAIL PROTECTED]>
* TextControl.cs: Make PageUp and PageDown more like the MS
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-15 16:28:28 UTC (rev 67938)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2006-11-15 16:31:21 UTC (rev 67939)
@@ -227,6 +227,8 @@
protected override void OnMouseMove (MouseEventArgs e) {
+ if (property_grid.root_grid_item == null)
+ return;
if (resizing_grid) {
int loc = Math.Max(e.X,2*V_INDENT);
@@ -240,6 +242,9 @@
}
protected override void OnMouseDown (MouseEventArgs e) {
+ if (property_grid.root_grid_item == null)
+ return;
+
if (e.X > SplitterLocation - RESIZE_WIDTH && e.X <
SplitterLocation + RESIZE_WIDTH) {
resizing_grid = true;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches