summaryrefslogtreecommitdiff
path: root/reports.cc
diff options
context:
space:
mode:
Diffstat (limited to 'reports.cc')
-rw-r--r--reports.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/reports.cc b/reports.cc
index 44dfcd74..6ec5c298 100644
--- a/reports.cc
+++ b/reports.cc
@@ -201,8 +201,7 @@ void print_register(const std::string& acct_name, std::ostream& out,
for (entries_list_iterator i = main_ledger->entries.begin();
i != main_ledger->entries.end();
i++) {
- if ((! have_beginning && ! have_ending && ! have_date_mask &&
- ! (cleared_only ? (*i)->cleared : ! (*i)->cleared)) ||
+ if ((cleared_only && ! (*i)->cleared) ||
! matches_date_range(*i) || ! (*i)->matches(regexps))
continue;