r22115 - gnucash/trunk/src/register/ledger-core - Fix threshold treatment in r22108, r22109 to make visualization and behaviour match.

Christian Stimming cstim at code.gnucash.org
Sat Mar 24 18:34:21 EDT 2012


Author: cstim
Date: 2012-03-24 18:34:21 -0400 (Sat, 24 Mar 2012)
New Revision: 22115
Trac: http://svn.gnucash.org/trac/changeset/22115

Modified:
   gnucash/trunk/src/register/ledger-core/split-register-load.c
   gnucash/trunk/src/register/ledger-core/split-register-model.c
Log:
Fix threshold treatment in r22108, r22109 to make visualization and behaviour match.

Modified: gnucash/trunk/src/register/ledger-core/split-register-load.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-load.c	2012-03-24 22:20:19 UTC (rev 22114)
+++ gnucash/trunk/src/register/ledger-core/split-register-load.c	2012-03-24 22:34:21 UTC (rev 22115)
@@ -541,7 +541,7 @@
                 use_autofreeze &&
                 !found_divider_upper)
         {
-            if (xaccTransGetDate (trans) > autofreeze_time)
+            if (xaccTransGetDate (trans) >= autofreeze_time)
             {
                 table->model->dividing_row_upper = vcell_loc.virt_row;
                 found_divider_upper = TRUE;

Modified: gnucash/trunk/src/register/ledger-core/split-register-model.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-model.c	2012-03-24 22:20:19 UTC (rev 22114)
+++ gnucash/trunk/src/register/ledger-core/split-register-model.c	2012-03-24 22:34:21 UTC (rev 22115)
@@ -1792,7 +1792,7 @@
 //              g_date_get_day(&trans_date),
 //              g_date_get_day(threshold_date));
 
-    if (g_date_compare(&trans_date, threshold_date) <= 0)
+    if (g_date_compare(&trans_date, threshold_date) < 0)
     {
         //g_warning("we must auto-read-only");
         result = TRUE;



More information about the gnucash-changes mailing list