diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-23 14:44:10 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-23 14:44:10 -0400 |
commit | 4ab50df56434cc6f50c2f99dbfef14768524de51 (patch) | |
tree | 855a52c4fb62f4bae4cab8d4f90322c86fded7f4 /src | |
parent | 7b7814d46638bf35b8a1b8c606b2b7d29941931b (diff) | |
download | fork-ledger-4ab50df56434cc6f50c2f99dbfef14768524de51.tar.gz fork-ledger-4ab50df56434cc6f50c2f99dbfef14768524de51.tar.bz2 fork-ledger-4ab50df56434cc6f50c2f99dbfef14768524de51.zip |
Don't report collapsed subtotal if no xacts seen
Diffstat (limited to 'src')
-rw-r--r-- | src/filters.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filters.cc b/src/filters.cc index c58d6618..9746f17c 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -280,7 +280,8 @@ namespace { void collapse_xacts::report_subtotal() { - assert(count >= 1); + if (! count) + return; std::size_t displayed_count = 0; foreach (xact_t * xact, component_xacts) { |