mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix error in dense-cal widget where the last occurrence of a SX wasn't displayed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19756 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
e74bee61b4
commit
f55706ecaf
@ -200,7 +200,12 @@ gdcs_generic_update_recurrences(GncDenseCalStore *trans, GDate *start, GList *re
|
||||
date = next;
|
||||
recurrenceListNextInstance(recurrences, &date, &next);
|
||||
}
|
||||
trans->num_real_marks = (i == 0 ? 0 : (i - 1));
|
||||
trans->num_real_marks = i;
|
||||
/* cstim: Previously this was i-1 but that's just plain wrong for
|
||||
* occurrences which are coming to an end, because then i contains
|
||||
* the number of (rest) occurrences exactly! Subtracting one means
|
||||
* we will miss the last one. */
|
||||
|
||||
g_signal_emit_by_name(trans, "update", GUINT_TO_POINTER(1));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user