diff options
author | Aaron Lindsay <AerialX@users.noreply.github.com> | 2018-01-09 17:53:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 17:53:29 -0500 |
commit | debce12a326ce38cd91e30c3cb7e35261d77b2b2 (patch) | |
tree | e025f75130bb4d29cb39991a6325430a85b9629b /src/xact.cc | |
parent | c2bf7850d1f55cad53ae4e16bde0ebf2cc1a1470 (diff) | |
download | fork-ledger-debce12a326ce38cd91e30c3cb7e35261d77b2b2.tar.gz fork-ledger-debce12a326ce38cd91e30c3cb7e35261d77b2b2.tar.bz2 fork-ledger-debce12a326ce38cd91e30c3cb7e35261d77b2b2.zip |
Transfer null_post flags to generated postings
Resolve issue where generated balanced postings would become real when the original null post was virtual.
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<post_t> 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()); } |