Bug #532889: When showing sx from txn preview dense cal, choose correct starting month.

When creating a scheduled transaction from a given transaction, the
first occurence from the transaction date onwards is found by
calculating the first occurence after the day before that date.  OTOH,
that "yesterday" should not be used as start date of the dense calendar.

Patch by Andreas Köhler <andi5.py@gmx.net>.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17659 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2008-10-26 14:38:15 +00:00
parent 5ca984954c
commit 10b83bac05

View File

@ -694,10 +694,10 @@ sxftd_update_example_cal( SXFromTransInfo *sxfti )
/* go one day before what's in the box so we can get the correct start /* go one day before what's in the box so we can get the correct start
* date. */ * date. */
startDate = date;
g_date_subtract_days(&date, 1); g_date_subtract_days(&date, 1);
g_date_clear(&nextDate, 1); g_date_clear(&nextDate, 1);
recurrenceListNextInstance(schedule, &date, &nextDate); recurrenceListNextInstance(schedule, &date, &nextDate);
startDate = date;
{ {
GtkWidget *w; GtkWidget *w;