summaryrefslogtreecommitdiff
path: root/reports.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-04-10 12:25:17 +0000
committerJohn Wiegley <johnw@newartisans.com>2004-04-10 12:25:17 +0000
commit31dafc3c163e4ceae42b1477c4eaeb4425b2b883 (patch)
tree6563c3fd122ed9ffb48dfb2ed14c5b5e4944f5e6 /reports.cc
parent9ffdff9510bd9fc2ac4a8efe8f6b94bde794fda1 (diff)
downloadfork-ledger-31dafc3c163e4ceae42b1477c4eaeb4425b2b883.tar.gz
fork-ledger-31dafc3c163e4ceae42b1477c4eaeb4425b2b883.tar.bz2
fork-ledger-31dafc3c163e4ceae42b1477c4eaeb4425b2b883.zip
*** empty log message ***
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;