summaryrefslogtreecommitdiff
path: root/ledger.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-09 01:01:25 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-09 01:01:25 +0000
commit5f7710fe6cc83b5d70a8aaeb5ec705f5e21c8d08 (patch)
treec7d8578b68e96e01e585c981c1b1401556d4e62b /ledger.cc
parent36a541a74515ed7a099e0856279ac0fe12d6c3a0 (diff)
downloadfork-ledger-5f7710fe6cc83b5d70a8aaeb5ec705f5e21c8d08.tar.gz
fork-ledger-5f7710fe6cc83b5d70a8aaeb5ec705f5e21c8d08.tar.bz2
fork-ledger-5f7710fe6cc83b5d70a8aaeb5ec705f5e21c8d08.zip
*** empty log message ***
Diffstat (limited to 'ledger.cc')
-rw-r--r--ledger.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/ledger.cc b/ledger.cc
index fe05d19b..b77b8856 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -323,9 +323,13 @@ bool matches(const regexps_map& regexps, const std::string& str,
// << (match ? "match" : "not match") << std::endl;
}
- if (match && ! definite && by_exclusion) {
-// out << " Note: Matched by exclusion rule" << std::endl;
- *by_exclusion = true;
+ if (by_exclusion) {
+ if (match && ! definite && by_exclusion) {
+// out << " Note: Matched by exclusion rule" << std::endl;
+ *by_exclusion = true;
+ } else {
+ *by_exclusion = false;
+ }
}
// out << " Final result: " << (match ? "match" : "not match")