summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2017-01-04 12:02:15 -0800
committerJohn Wiegley <johnw@newartisans.com>2017-01-04 12:02:15 -0800
commitf27d7776ca8fb29c5a523c859d64f3c570ce8985 (patch)
tree9ae01f8c316bc3a3e6f9709192f17bf388adc89c /src/report.cc
parent0e1c6115b37cc2ddde2d981dfd0e329be626316c (diff)
downloadfork-ledger-f27d7776ca8fb29c5a523c859d64f3c570ce8985.tar.gz
fork-ledger-f27d7776ca8fb29c5a523c859d64f3c570ce8985.tar.bz2
fork-ledger-f27d7776ca8fb29c5a523c859d64f3c570ce8985.zip
Item sorting should have access to the report scope
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/report.cc b/src/report.cc
index 09cae692..aef73751 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -431,8 +431,9 @@ namespace {
} else {
expr_t sort_expr(report.HANDLER(sort_).str());
sort_expr.set_context(&report);
- sorted_accounts_iterator iter(*report.session.journal->master,
- sort_expr, report.HANDLED(flat));
+ sorted_accounts_iterator iter(
+ *report.session.journal->master, sort_expr, report,
+ report.HANDLED(flat));
pass_down_accounts<sorted_accounts_iterator>
(handler, iter, predicate_t(report.HANDLER(display_).str(),
report.what_to_keep()), report);
@@ -444,8 +445,9 @@ namespace {
} else {
expr_t sort_expr(report.HANDLER(sort_).str());
sort_expr.set_context(&report);
- sorted_accounts_iterator iter(*report.session.journal->master,
- sort_expr, report.HANDLED(flat));
+ sorted_accounts_iterator iter(
+ *report.session.journal->master, sort_expr, report,
+ report.HANDLED(flat));
pass_down_accounts<sorted_accounts_iterator>(handler, iter);
}
}