r22723 - gnucash/trunk/src/gnome - Don't store a negative reconcile interval.

Mike Alexander mta at code.gnucash.org
Tue Jan 22 17:25:31 EST 2013


Author: mta
Date: 2013-01-22 17:25:31 -0500 (Tue, 22 Jan 2013)
New Revision: 22723
Trac: http://svn.gnucash.org/trac/changeset/22723

Modified:
   gnucash/trunk/src/gnome/window-reconcile.c
Log:
Don't store a negative reconcile interval.

Modified: gnucash/trunk/src/gnome/window-reconcile.c
===================================================================
--- gnucash/trunk/src/gnome/window-reconcile.c	2013-01-22 10:26:59 UTC (rev 22722)
+++ gnucash/trunk/src/gnome/window-reconcile.c	2013-01-22 22:25:31 UTC (rev 22723)
@@ -628,9 +628,10 @@
     }
 
     /*
-     * Remember for next time.
+     * Remember for next time unless it is negative.
      */
-    xaccAccountSetReconcileLastInterval(account, months, days);
+    if (months >= 0 && days >= 0)
+        xaccAccountSetReconcileLastInterval(account, months, days);
 }
 
 



More information about the gnucash-changes mailing list