Author: rolf
Date: 2007-05-04 05:20:40 -0400 (Fri, 04 May 2007)
New Revision: 76661
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
Log:
* DateTimePicker.cs: CalculateDropDownLocation: do a null check before
accessing the parent. Fixes #81508.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-04 04:56:33 UTC (rev 76660)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-04 09:20:40 UTC (rev 76661)
@@ -1,3 +1,8 @@
+2007-05-04 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
+ accessing the parent. Fixes #81508.
+
2007-05-03 Chris Toshok <[EMAIL PROTECTED]>
* CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
2007-05-04 04:56:33 UTC (rev 76660)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
2007-05-04 09:20:40 UTC (rev 76661)
@@ -1184,7 +1184,9 @@
}
// since the parent of the month calendar is the form,
adjust accordingly.
- screen_location =
month_calendar.Parent.PointToClient(screen_location);
+ if (month_calendar.Parent != null) {
+ screen_location =
month_calendar.Parent.PointToClient(screen_location);
+ }
return screen_location;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches