From b4e889cf336abacccc5b41aaa0af6f5e4abd2868 Mon Sep 17 00:00:00 2001 From: Ammerhai Date: Thu, 9 Apr 2026 20:44:27 +0200 Subject: [PATCH] fix to get the leap years correctly displayed --- src/work-calendar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/work-calendar.cpp b/src/work-calendar.cpp index 6d4f75b..42097ae 100644 --- a/src/work-calendar.cpp +++ b/src/work-calendar.cpp @@ -494,7 +494,7 @@ void per_frame(){ if (ImGui::BeginTable("Weekdays", 7, ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_Borders)) { int offset = weekday_from_day(year, month, 1); - for (int day = 1; day <= days_per_month(2025, month); day++) { + for (int day = 1; day <= days_per_month(year, month); day++) { int weekday = weekday_from_day(year, month, day); if (weekday == 0 || day == 1){