Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Corrected code for generating the month view grid in leap years.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 26 Jun 2016 10:11:36 +0000 (11:11 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 26 Jun 2016 10:11:36 +0000 (11:11 +0100)
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