[hackers] [sbase] Fix problem with multi month display spanning a year. || Markus Wichmann
commit fea48eb229c4801d35ac6741bcaad35bfa59bf23
Author: Markus Wichmann <nullplan_AT_gmx.net>
Date: Mon Dec 15 20:42:12 2014 +0100
Fix problem with multi month display spanning a year.
diff --git a/cal.c b/cal.c
index 8b5244c..dca2313 100644
--- a/cal.c
+++ b/cal.c
_AT_@ -59,7 +59,7 @@ drawcal(int year, int month, int day, int ncols, int nmons, int fday)
yoff = year + moff / 12;
ndays = mdays[cur] + ((cur == 1) && isleap(yoff));
- day1 = dayofweek(year, cur, 1, fday);
+ day1 = dayofweek(yoff, cur, 1, fday);
for (d = 0; d < 7; d++) {
if ((r || d >= day1) && count[i] <= ndays)
Received on Tue Dec 16 2014 - 11:56:18 CET
This archive was generated by hypermail 2.3.0
: Tue Dec 16 2014 - 12:00:16 CET