lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 3c6bd9d 3/4: Omit "age 70" from composite num


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 3c6bd9d 3/4: Omit "age 70" from composite numerical summary
Date: Tue, 22 Aug 2017 12:21:13 -0400 (EDT)

branch: master
commit 3c6bd9d8276e20d6803274d5cccb7f89f838061d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Omit "age 70" from composite numerical summary
    
    See:
      http://lists.nongnu.org/archive/html/lmi/2017-08/msg00039.html
---
 ledger_text_formats.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ledger_text_formats.cpp b/ledger_text_formats.cpp
index fdd4b75..3aaad30 100644
--- a/ledger_text_formats.cpp
+++ b/ledger_text_formats.cpp
@@ -1063,6 +1063,14 @@ void FlatTextLedgerPrinter::PrintNumericalSummary() const
         os_.precision(0);
         os_.width(7);
 
+        // For composites, don't print the age-70 row (because age
+        // is undefined) or lapse durations (which generally vary).
+        if(ledger_.is_composite() && &row == &summary_rows.back())
+            {
+            os_ << endrow;
+            return;
+            }
+
         if(&row == &summary_rows.back())
             {
             os_ << " Age 70";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]