Lars Henriksen bd238bfd7c Fix recurrence rule expansion with ordered weekday
When the order of a weekday in BYDAY rule expansion (like -5SA or 5SU
for monthly or 55WE for yearly) exceeds the number of available weekdays
in the period (month or year), rule expansion with negative order could
result in a floating point exception. The reason: the modified frequency
might become zero.

Solution. Check order against number of available weekdays and terminate
expansion early whenever possible (also for positive orders).

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2020-05-12 09:24:11 -04:00
..
2019-10-18 16:29:34 -04:00
2020-03-22 13:45:40 -04:00
2019-01-07 16:57:57 +01:00
2014-08-18 11:35:01 +02:00
2020-03-22 13:45:40 -04:00