From 5f7710fe6cc83b5d70a8aaeb5ec705f5e21c8d08 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 9 Oct 2003 01:01:25 +0000 Subject: *** empty log message *** --- ledger.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ledger.cc') 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") -- cgit v1.2.3