[Mono-bugs] [Bug 362749] [Regression] PropertyGrid: date-time editor isn' t initialised with the current date value
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Feb 21 09:33:42 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=362749
User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=362749#c1
Andy Hume <andyhume32 at yahoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|PropertyGrid: date-time editor isn't initialised|[Regression] PropertyGrid: date-time editor
|with the current date value |isn't initialised with the current date value
--- Comment #1 from Andy Hume <andyhume32 at yahoo.co.uk> 2008-02-21 07:33:42 MST ---
A minor regression, as the user *can* set a date; it's just that the original
date won't be pre-selected on drop-down.
This was caused by the change in r95530 -- the MonthCalendar is not initialised
now (well it is only initialised when an illegal date is present!).
Patch below.
The second half of the report is confirmed to be a problem in MonthCalendar,
bug and repro to follow.
[[
Index: DateTimeEditor.cs
===================================================================
--- DateTimeEditor.cs (revision 96283)
+++ DateTimeEditor.cs (working copy)
@@ -71,6 +71,8 @@
editContent = (DateTime)value;
if (editContent > control.MaxDate ||
editContent < control.MinDate)
control.SelectionStart =
DateTime.Today;
+ else
+ control.SelectionStart =
editContent;
editorService.DropDownControl
(control);
]]
Also the file needs its SVN line-ending property set.
Code is contributed under MIT/X11 license.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list