diff options
author | John Wiegley <johnw@newartisans.com> | 2017-01-04 12:02:15 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2017-01-04 12:02:15 -0800 |
commit | f27d7776ca8fb29c5a523c859d64f3c570ce8985 (patch) | |
tree | 9ae01f8c316bc3a3e6f9709192f17bf388adc89c /src/iterators.cc | |
parent | 0e1c6115b37cc2ddde2d981dfd0e329be626316c (diff) | |
download | fork-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/iterators.cc')
-rw-r--r-- | src/iterators.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iterators.cc b/src/iterators.cc index 88233ea1..398d2684 100644 --- a/src/iterators.cc +++ b/src/iterators.cc @@ -201,7 +201,7 @@ void sorted_accounts_iterator::push_back(account_t& account) std::stable_sort(accounts_list.back().begin(), accounts_list.back().end(), - compare_items<account_t>(sort_cmp)); + compare_items<account_t>(sort_cmp, report)); #if DEBUG_ON if (SHOW_DEBUG("account.sorted")) { @@ -234,7 +234,7 @@ void sorted_accounts_iterator::sort_accounts(account_t& account, deque.push_back(pair.second); std::stable_sort(deque.begin(), deque.end(), - compare_items<account_t>(sort_cmp)); + compare_items<account_t>(sort_cmp, report)); #if DEBUG_ON if (SHOW_DEBUG("account.sorted")) { |