r17700 - gnucash/branches/2.2/src/gnome - [r17659] Bug #532889: When showing sx from txn preview dense cal, choose correct starting month.

Christian Stimming cstim at cvs.gnucash.org
Sat Nov 15 16:41:40 EST 2008


Author: cstim
Date: 2008-11-15 16:41:40 -0500 (Sat, 15 Nov 2008)
New Revision: 17700
Trac: http://svn.gnucash.org/trac/changeset/17700

Modified:
   gnucash/branches/2.2/src/gnome/dialog-sx-from-trans.c
Log:
[r17659] 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 at gmx.net>.

Modified: gnucash/branches/2.2/src/gnome/dialog-sx-from-trans.c
===================================================================
--- gnucash/branches/2.2/src/gnome/dialog-sx-from-trans.c	2008-11-15 21:41:31 UTC (rev 17699)
+++ gnucash/branches/2.2/src/gnome/dialog-sx-from-trans.c	2008-11-15 21:41:40 UTC (rev 17700)
@@ -694,10 +694,10 @@
 
   /* 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;



More information about the gnucash-changes mailing list