From f27d7776ca8fb29c5a523c859d64f3c570ce8985 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Jan 2017 12:02:15 -0800 Subject: Item sorting should have access to the report scope --- src/report.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/report.cc') 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 (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(handler, iter); } } -- cgit v1.2.3