Hi Neil,
 
I'll take care of this and add unit tests.
 
Thanks for reporting.
 
Gert 
  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil Cawse
Sent: zondag 27 mei 2007 20:04
To: '[email protected]'
Subject: [Mono-winforms-list] PATCH



Patch to fix a bug in DateTimePicker related to setting MinDate.

 

Index: DateTimePicker.cs

===================================================================

--- DateTimePicker.cs    (revision 78003) 

+++ DateTimePicker.cs    (working copy) 

@@ -426,7 +426,7 @@

         

         public DateTime MinDate {

             set {

-                if (value < min_date) { 

+                if (value > max_date) { 

                     throw new ArgumentException ();

                 }

                 if (value < MinDateTime) {

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

Reply via email to