diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-13 02:58:49 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-13 02:58:49 -0400 |
commit | b134a98e1e86bed00f291c1eb2b6505b4d9a6b64 (patch) | |
tree | e5d6cb65efa9646ba752a3872dcba8d9a35c652e /src/filters.h | |
parent | 3f8412f4042239b2babfcd11d1d9544c85d935b2 (diff) | |
download | ledger-b134a98e1e86bed00f291c1eb2b6505b4d9a6b64.tar.gz ledger-b134a98e1e86bed00f291c1eb2b6505b4d9a6b64.tar.bz2 ledger-b134a98e1e86bed00f291c1eb2b6505b4d9a6b64.zip |
Enabled the --tail and --head options.
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters.h b/src/filters.h index eda50732..31c89b48 100644 --- a/src/filters.h +++ b/src/filters.h @@ -111,11 +111,11 @@ public: } virtual void flush(); + virtual void operator()(xact_t& xact) { - if (tail_count == 0 && head_count > 0 && - xacts.size() >= static_cast<unsigned int>(head_count)) - return; - xacts.push_back(&xact); + if (! (tail_count == 0 && head_count > 0 && + static_cast<int>(xacts.size()) >= head_count)) + xacts.push_back(&xact); } }; |