summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-20 04:56:03 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-20 04:56:03 -0500
commite3248ee5a6b2c29e1c35eb0315fd66370a117784 (patch)
treeb394d8045e8e524d3dc7c6c6efd9fe865756e994 /src/commodity.cc
parent446beee376ecfd5371335ac99cd287fc26851006 (diff)
downloadfork-ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.tar.gz
fork-ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.tar.bz2
fork-ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.zip
Fix problems with <Adjustment> postings
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 5335d8a8..51b8f29c 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -221,6 +221,8 @@ commodity_t& commodity_t::nail_down(const expr_t& expr)
{
annotation_t new_details;
new_details.value_expr = expr;
+ new_details.add_flags(ANNOTATION_VALUE_EXPR_CALCULATED);
+
commodity_t * new_comm =
commodity_pool_t::current_pool->find_or_create(symbol(), new_details);
return *new_comm;