Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Corrected code for generating the month view grid in leap years.
[xestiacalendar/.git] / source / common / monthviewgen.cpp
index f1bd702..f267b84 100644 (file)
@@ -221,13 +221,13 @@ XCCalendarMonthViewGrid GenerateMonthGrid(int Month, int Year){
                        
                        }
                
-                       if (Month == 2 && ProcessDay == 28){
-                       
+                       if (Month == 2 && ProcessDay == 29){
+
                                break;
                                
                        }
                
-               } else if (Month == 2 && ProcessDay == 28){
+               } else if ((Month == 2 && ProcessDay == 28) && Year % 4 != 0){
                
                        break;
                
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy