From 658029d39f8594c7f3bf75fb8f7ca9fb2081b473 Mon Sep 17 00:00:00 2001 From: "johannes@debussy" Date: Tue, 5 Nov 2013 16:13:37 +0100 Subject: first implementation of --depth for register --- src/filters.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/filters.cc') diff --git a/src/filters.cc b/src/filters.cc index f7321438..2b4fe1bf 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -473,6 +473,10 @@ void collapse_posts::report_subtotal() value_t& collapse_posts::find_totals(account_t* account) { unsigned short depth=3; + + if(depth==0) + return totals[_("")]; + if(account->depth==depth) return totals[account->fullname()]; -- cgit v1.2.3