From 1e18536a8c6e3e83257687ec4588ddba5fcb890b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 7 Mar 2012 05:37:49 -0600 Subject: Deferred notes were being processed too late --- src/xact.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/xact.cc') diff --git a/src/xact.cc b/src/xact.cc index 5e4b4c64..4ec40f69 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -779,6 +779,14 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context) journal->register_account(account->fullname(), new_post, journal->master); + if (deferred_notes) { + foreach (deferred_tag_data_t& data, *deferred_notes) { + if (! data.apply_to_post || data.apply_to_post == post) + new_post->parse_tags(data.tag_data.c_str(), bound_scope, + data.overwrite_existing); + } + } + extend_post(*new_post, *journal); xact.add_post(new_post); @@ -786,14 +794,6 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context) if (new_post->must_balance()) needs_further_verification = true; - - if (deferred_notes) { - foreach (deferred_tag_data_t& data, *deferred_notes) { - if (data.apply_to_post == post) - new_post->parse_tags(data.tag_data.c_str(), bound_scope, - data.overwrite_existing); - } - } } } } -- cgit v1.2.3