summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-28 01:18:27 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-28 01:18:27 -0400
commitaa45d2d38cffe09ed2503e0df07bee373cc0e7de (patch)
treeb1ee9eaba7e7ff364e571ba74eb4a02afef9983f /src/filters.cc
parentcc532c31aa8aa745d6d02c5c0cb22b3d75866590 (diff)
downloadfork-ledger-aa45d2d38cffe09ed2503e0df07bee373cc0e7de.tar.gz
fork-ledger-aa45d2d38cffe09ed2503e0df07bee373cc0e7de.tar.bz2
fork-ledger-aa45d2d38cffe09ed2503e0df07bee373cc0e7de.zip
Further improvements to handling temporaries
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 25649ad0..b5d0e168 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -686,6 +686,7 @@ void transfer_details::operator()(post_t& post)
xact.payee = expr.calc(bound_scope).to_string();
break;
case SET_ACCOUNT:
+ temp.account->remove_post(&temp);
temp.account = master->find_account(expr.calc(bound_scope).to_string());
temp.account->add_post(&temp);
break;