lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ff118b3 5/8: Assert that a refactoring will b


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ff118b3 5/8: Assert that a refactoring will be safe
Date: Wed, 12 Sep 2018 12:08:06 -0400 (EDT)

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

    Assert that a refactoring will be safe
---
 ledger_pdf_generator_wx.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index 4beb5d5..6d262e2 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -1497,6 +1497,15 @@ class numeric_summary_table_cell
                             }
                         }
 
+                    if(is_last_row)
+                        {
+                        // If this assertion always succeeds, then the code
+                        // that establishes this invariant above, and the
+                        // assertion, can be removed.
+                        LMI_ASSERT(summary_age_string == 
visible_values.at(column_policy_year));
+                        visible_values.at(column_policy_year) = 
summary_age_string;
+                        }
+
                     table_gen.output_row(pos_y, visible_values);
                     }
                     break;



reply via email to

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