commit 339991fd7e22cea65ddd2ed3a6faab84fe289e4b
Author: Andreas Köhler <andi5.py@gmx.net>
Date:   Wed May 14 00:25:43 2008 +0200

    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.
    
    BP

diff --git a/src/gnome/dialog-sx-from-trans.c b/src/gnome/dialog-sx-from-trans.c
index 54e2b0f..a82eaaf 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;
