From 11dc80b6184f7a48400a76ee226ef1c9be819145 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Feb 2009 14:55:36 -0400 Subject: Don't apply an automated entry to a generated transaction. --- src/entry.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/entry.cc b/src/entry.cc index 245a95c2..530d12fb 100644 --- a/src/entry.cc +++ b/src/entry.cc @@ -320,11 +320,10 @@ bool entry_t::valid() const void auto_entry_t::extend_entry(entry_base_t& entry, bool post) { - xacts_list initial_xacts(entry.xacts.begin(), - entry.xacts.end()); + xacts_list initial_xacts(entry.xacts.begin(), entry.xacts.end()); foreach (xact_t * initial_xact, initial_xacts) { - if (predicate(*initial_xact)) { + if (! initial_xact->has_flags(XACT_AUTO) && predicate(*initial_xact)) { foreach (xact_t * xact, xacts) { amount_t amt; assert(xact->amount); -- cgit v1.2.3