From 10b83bac056c3c5dd4b7fb9d99101bac715ccc12 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sun, 26 Oct 2008 14:38:15 +0000 Subject: [PATCH] Bug #532889: When showing sx from txn preview dense cal, choose correct starting month. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 . BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17659 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/dialog-sx-from-trans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnome/dialog-sx-from-trans.c b/src/gnome/dialog-sx-from-trans.c index 597f48d99e..54c151e787 100644 --- a/src/gnome/dialog-sx-from-trans.c +++ b/src/gnome/dialog-sx-from-trans.c @@ -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 * date. */ + startDate = date; g_date_subtract_days(&date, 1); g_date_clear(&nextDate, 1); recurrenceListNextInstance(schedule, &date, &nextDate); - startDate = date; { GtkWidget *w;