From c39267cc92265e1b90281e8155ff8f73a13d6fb3 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Sat, 16 Sep 2000 09:25:15 +0000 Subject: [PATCH] Merge from 1.4 -- Bartek Szady's patch. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2865 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/Account.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/Account.c b/src/engine/Account.c index e65b19cc19..f3da35f40d 100644 --- a/src/engine/Account.c +++ b/src/engine/Account.c @@ -604,7 +604,9 @@ xaccAccountRecomputeBalance( Account * acc ) /* For bank accounts, the invariant subtotal is the dollar * amount. For stock accounts, the invariant is the share amount */ - if ( (STOCK == acc->type) || ( MUTUAL == acc->type) ) { + if ( (STOCK == acc->type) || + (MUTUAL == acc->type) || + (CURRENCY == acc->type) ) { split -> share_balance = share_balance; split -> share_cleared_balance = share_cleared_balance; split -> share_reconciled_balance = share_reconciled_balance;