diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 17:17:57 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 17:17:57 -0400 |
commit | 275da22752f690f202269e2a0dc5cd405e0490e2 (patch) | |
tree | 8d3a1749e83554d1dc128aa0d44a165ba22a3f1b /src | |
parent | bc2983928dc8f98051321846d8c8fa374c8181b6 (diff) | |
download | fork-ledger-275da22752f690f202269e2a0dc5cd405e0490e2.tar.gz fork-ledger-275da22752f690f202269e2a0dc5cd405e0490e2.tar.bz2 fork-ledger-275da22752f690f202269e2a0dc5cd405e0490e2.zip |
Fixed the --head and --tail options
Diffstat (limited to 'src')
-rw-r--r-- | src/chain.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/chain.cc b/src/chain.cc index dae72db1..aa5ef0ab 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -49,9 +49,12 @@ xact_handler_ptr chain_xact_handlers(report_t& report, // truncate_entries cuts off a certain number of _entries_ from being // displayed. It does not affect calculation. if (report.HANDLED(head_) || report.HANDLED(tail_)) - handler.reset(new truncate_entries(handler, - report.HANDLER(head_).value.to_long(), - report.HANDLER(tail_).value.to_long())); + handler.reset + (new truncate_entries(handler, + report.HANDLED(head_) ? + report.HANDLER(head_).value.to_long() : 0, + report.HANDLED(tail_) ? + report.HANDLER(tail_).value.to_long() : 0)); // filter_xacts will only pass through xacts matching the // `display_predicate'. |