lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 6fe7458 5/9: Fix "annnual" in output


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6fe7458 5/9: Fix "annnual" in output
Date: Wed, 29 Aug 2018 11:07:55 -0400 (EDT)

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

    Fix "annnual" in output
    
    Changed {{ErModeLCWithArticle}} with this effect:
    - annnual
    + an annual
---
 ledger_pdf_generator_wx.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index 344843e..74c4db0 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -2027,13 +2027,13 @@ class pdf_illustration_regular : public pdf_illustration
         // Variable representing the premium payment frequency with the
         // appropriate indefinite article preceding it, e.g. "an annual"
         // or "a monthly".
-        auto const mode0 = invar.InitErMode;
+        std::string mode0 = invar.InitErMode;
         if(!mode0.empty())
             {
-            auto const mode0_first = lmi_tolower(mode0[0]);
+            mode0[0] = lmi_tolower(mode0[0]);
             add_variable
                 ("ErModeLCWithArticle"
-                ,(strchr("aeiou", mode0_first) ? "an" : "a") + mode0.substr(1)
+                ,(strchr("aeiou", mode0[0]) ? "an " : "a ") + mode0
                 );
             }
 



reply via email to

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