summaryrefslogtreecommitdiff
path: root/derive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'derive.cc')
-rw-r--r--derive.cc2
1 files changed, 1 insertions, 1 deletions
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());
}
}