]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
Correctly determine best wxPropertyGrid width.
[wxWidgets.git] / src / common / datetime.cpp
index 5de52dd01ec85a7b51cff12d7a4ad061b5cac830..2adec8c242846d5da92cc88f9553b97b53df5016 100644 (file)
@@ -875,7 +875,7 @@ wxString wxDateTime::GetEnglishWeekDayName(WeekDay wday, NameFlags flags)
 {
     wxCHECK_MSG( wday != Inv_WeekDay, wxEmptyString, wxT("invalid weekday") );
 
-    static const char *weekdayNames[2][DAYS_PER_400_YEARS] =
+    static const char *weekdayNames[2][DAYS_PER_WEEK] =
     {
         { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday",
           "Saturday" },