prevent NullReferenceException in RenderAllDays().
authorAlon Gazit <alon@mono-cvs.ximian.com>
Wed, 28 Jan 2004 10:16:40 +0000 (10:16 -0000)
committerAlon Gazit <alon@mono-cvs.ximian.com>
Wed, 28 Jan 2004 10:16:40 +0000 (10:16 -0000)
svn path=/trunk/mcs/; revision=22573

mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

index e07122e2caa3cd31f8cca052a6616f50fff7f41f..948e2ab0babb13fe378aee06cb12fa6c86030737 100755 (executable)
@@ -905,7 +905,7 @@ namespace System.Web.UI.WebControls
                                                                dow == DayOfWeek.Sunday ||
                                                                dow == DayOfWeek.Saturday,
                                                                currentDay == TodaysDate, \r
-                                                               selectedDates.Contains (currentDay),\r
+                                                               SelectedDates.Contains (currentDay),\r
                                                                globCal.GetMonth (currentDay) != month,\r
                                                                dayString\r
                                                                );\r
index f05fbb10fdeb716ca5fd959af54c0578ac056a47..9c370bc6faaab95d42fde56a666bb0cec81716d3 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-28 Alon Gazit <along@mainsoft.com>
+
+       * Calendar.cs: prevent NullReferenceException in RenderAllDays().
+
 2004-01-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * Calendar.cs: when rendering days, add a LiteralControl containing the