summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc16
1 files changed, 8 insertions, 8 deletions
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);
- }
- }
}
}
}