From 0e686082cea97fab7979acadf934534be7d94de8 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sat, 15 Mar 2003 07:51:07 +0000 Subject: [PATCH] Fix problem where changing the reconciliation date of a "reverse balance" account would cause the proposed account balance to show the wrong sign. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8083 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 7 +++++++ src/gnome/window-reconcile.c | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 331a27fc0d..2f2910cf4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,13 @@ documentation comments, improved doxygen output. At least the most important header files will now show up in doxygen. +2003-03-14 David Hampton + + * src/gnome/window-reconcile.c (gnc_start_recn_date_changed): + Don't reverse the account balance here. The routine called to + retrieve the account balance has already taken care of reversing + the sign where necessary. + 2003-03-13 David Hampton * src/app-utils/option-util.c (gnc_option_get_range_info): Reapply diff --git a/src/gnome/window-reconcile.c b/src/gnome/window-reconcile.c index 9b62345dd6..d72feaefdd 100644 --- a/src/gnome/window-reconcile.c +++ b/src/gnome/window-reconcile.c @@ -325,10 +325,6 @@ gnc_start_recn_date_changed (GtkWidget *widget, startRecnWindowData *data) new_balance = gnc_ui_account_get_balance_as_of_date (data->account, new_date, data->include_children); - /* use the correct sign */ - if (gnc_reverse_balance (data->account)) - new_balance = gnc_numeric_neg (new_balance); - /* update the amount edit with the amount */ gnc_amount_edit_set_amount (GNC_AMOUNT_EDIT (data->end_value), new_balance);