summaryrefslogtreecommitdiff
path: root/src/temps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/temps.cc')
-rw-r--r--src/temps.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/temps.cc b/src/temps.cc
index cb471d41..881077f6 100644
--- a/src/temps.cc
+++ b/src/temps.cc
@@ -81,7 +81,8 @@ post_t& temporaries_t::copy_post(post_t& origin, xact_t& xact,
return temp;
}
-post_t& temporaries_t::create_post(xact_t& xact, account_t * account)
+post_t& temporaries_t::create_post(xact_t& xact, account_t * account,
+ bool bidir_link)
{
if (! post_temps)
post_temps = std::list<post_t>();
@@ -93,7 +94,10 @@ post_t& temporaries_t::create_post(xact_t& xact, account_t * account)
temp.account = account;
temp.account->add_post(&temp);
- xact.add_post(&temp);
+ if (bidir_link)
+ xact.add_post(&temp);
+ else
+ temp.xact = &xact;
return temp;
}