summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 14:44:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 14:44:10 -0400
commit4ab50df56434cc6f50c2f99dbfef14768524de51 (patch)
tree855a52c4fb62f4bae4cab8d4f90322c86fded7f4 /src
parent7b7814d46638bf35b8a1b8c606b2b7d29941931b (diff)
downloadfork-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.cc3
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) {