From debce12a326ce38cd91e30c3cb7e35261d77b2b2 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 9 Jan 2018 17:53:29 -0500 Subject: Transfer null_post flags to generated postings Resolve issue where generated balanced postings would become real when the original null post was virtual. --- src/xact.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xact.cc') diff --git a/src/xact.cc b/src/xact.cc index 69887437..12b8cb41 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -145,7 +145,7 @@ namespace { first = false; } else { unique_ptr p(new post_t(null_post->account, amount.negated(), - ITEM_GENERATED | POST_CALCULATED)); + null_post->flags() | ITEM_GENERATED | POST_CALCULATED)); p->set_state(null_post->state()); xact.add_post(p.release()); } -- cgit v1.2.3