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:
Christian Stimming 2010-11-05 21:36:41 +00:00
parent e74bee61b4
commit f55706ecaf

View File

@ -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));
}