TI-100: Fix expansion of :lastquarter when in first quarter

This commit is contained in:
Thomas Lauf 2018-01-15 20:27:35 +01:00
parent f5622c07c3
commit 8e2e350cab
3 changed files with 11 additions and 3 deletions

View file

@ -260,8 +260,13 @@ bool expandIntervalHint (
m = ((q - 1) * 3) + 1;
range.start = Datetime (y, m, 1);
range.end = Datetime (y, m + 3, 1);
range.start = Datetime (y, m, 1);
m += 3;
y += m/12;
m %= 12;
range.end = Datetime (y, m, 1);
debug (format ("Hint {1} expanded to {2} - {3}",
hint,