summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/format.cc b/format.cc
index 1c919421..1be9651c 100644
--- a/format.cc
+++ b/format.cc
@@ -928,7 +928,8 @@ bool display_account(const account_t& account,
if (disp_subaccounts_p(account, disp_pred, account_to_show))
return true;
- return ! account_to_show && (! disp_pred || (*disp_pred)(account));
+ return (! account_to_show &&
+ (! disp_pred || (*disp_pred)(const_cast<account_t&>(account))));
}
void format_accounts::operator()(account_t& account)