From 643f2d33cf24bbae4a13acfbfc6af5fe8439f905 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 24 Jul 2008 09:02:47 -0400 Subject: More work toward getting the textual parser working again. Since this means that value expressions must work, there are a lot of details involved. --- derive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'derive.cc') diff --git a/derive.cc b/derive.cc index 06581f96..35f89788 100644 --- a/derive.cc +++ b/derive.cc @@ -67,7 +67,7 @@ entry_t * derive_new_entry(journal_t& journal, value_t total = account_xdata(*acct).total; if (total.is_type(value_t::AMOUNT)) - xact->amount.set_commodity(total.as_amount_lval().commodity()); + xact->amount.set_commodity(total.as_amount().commodity()); } } -- cgit v1.2.3