diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-08 13:36:21 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-08 13:36:21 -0500 |
commit | 55c7792c9329f97dd19fc5aeca466cb2de4fbf9c (patch) | |
tree | b820b7c4b064e5d430439839768aa5b855ce3a4a /src/xact.cc | |
parent | 3f00f8362c2fdfae1dbb6517bc29c75e308bc4f0 (diff) | |
parent | 60059750061fe59c83adc869f36335a083955608 (diff) | |
download | fork-ledger-55c7792c9329f97dd19fc5aeca466cb2de4fbf9c.tar.gz fork-ledger-55c7792c9329f97dd19fc5aeca466cb2de4fbf9c.tar.bz2 fork-ledger-55c7792c9329f97dd19fc5aeca466cb2de4fbf9c.zip |
Merge branch 'next'
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xact.cc b/src/xact.cc index 67dad155..68b607f4 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -156,8 +156,8 @@ bool xact_base_t::finalize() // If there is only one post, balance against the default account if one has // been set. - if (journal && journal->basket && posts.size() == 1 && ! balance.is_null()) { - null_post = new post_t(journal->basket, ITEM_GENERATED); + if (journal && journal->bucket && posts.size() == 1 && ! balance.is_null()) { + null_post = new post_t(journal->bucket, ITEM_GENERATED); null_post->_state = (*posts.begin())->_state; add_post(null_post); } |