summaryrefslogtreecommitdiff
path: root/derive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'derive.cc')
-rw-r--r--derive.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/derive.cc b/derive.cc
index f3a2f3e7..dd9dc4ca 100644
--- a/derive.cc
+++ b/derive.cc
@@ -31,7 +31,7 @@
#include "derive.h"
#include "session.h"
-#include "walk.h"
+#include "iterators.h"
namespace ledger {
@@ -96,7 +96,7 @@ entry_t * derive_new_entry(report_t& report,
report.sum_all_accounts();
- value_t total = account_xdata(*acct).total;
+ value_t total = acct->xdata().total;
if (total.is_type(value_t::AMOUNT))
xact->amount.set_commodity(total.as_amount().commodity());
}