Fix threshold treatment in r22108, r22109 to make visualization and behaviour match.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22115 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2012-03-24 22:34:21 +00:00
parent 0ecb61dd13
commit 84379bac27
2 changed files with 2 additions and 2 deletions

View File

@@ -541,7 +541,7 @@ gnc_split_register_load (SplitRegister *reg, GList * slist,
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;

View File

@@ -1792,7 +1792,7 @@ static gboolean posted_date_means_readonly(const Transaction *trans)
// 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;