[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d30e9b1 9/9: Make {{ContractNameCap}} availab
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d30e9b1 9/9: Make {{ContractNameCap}} available for all formats |
Date: |
Wed, 12 Jun 2019 12:53:01 -0400 (EDT) |
branch: master
commit d30e9b1fa6535f4bdda27e3e94eca5461c2aafbe
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Make {{ContractNameCap}} available for all formats
---
pdf_command_wx.cpp | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 8c5105e..92b3975 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -970,6 +970,19 @@ class pdf_illustration : protected html_interpolator,
protected pdf_writer_wx
,invar.UWClass == "Rated"
);
+ // Define variables specific to this illustration.
+ if(!invar.ContractName.empty())
+ {
+ std::string s = invar.ContractName;
+ for(auto& c : s)
+ {
+ c = lmi_tolower(c);
+ }
+ s[0] = lmi_toupper(s[0]);
+
+ add_variable("ContractNameCap", s);
+ }
+
// PDF !! Conditions of this ilk should become distinct entities in
// the product files--or in this case, eliminated altogether: this
// condition is used only in one place, in a really silly way.
@@ -2846,19 +2859,6 @@ class pdf_illustration_finra : public pdf_illustration
{
auto const& invar = ledger.GetLedgerInvariant();
- // Define variables specific to this illustration.
- if(!invar.ContractName.empty())
- {
- std::string s = invar.ContractName;
- for(auto& c : s)
- {
- c = lmi_tolower(c);
- }
- s[0] = lmi_toupper(s[0]);
-
- add_variable("ContractNameCap", s);
- }
-
auto const& state_of_jurisdiction = invar.StateOfJurisdiction;
add_variable
- [lmi-commits] [lmi] master updated (a9bcf09 -> d30e9b1), Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master b6c5d13 6/9: Improve const correctness, Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master 1f1adcf 8/9: Prefer std::array to std::vector when size is fixed, Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master 9ffdf78 4/9: Add const accessors to class database_index, Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master 7b5da91 5/9: Use database_index const accessors, Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master fad3d61 1/9: Use forward declarations to improve physical design, Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master 89c8cc5 2/9: Use forward declarations to improve physical design, Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master d30e9b1 9/9: Make {{ContractNameCap}} available for all formats,
Greg Chicares <=
- [lmi-commits] [lmi] master a8298c9 3/9: Improve list of handy commands, Greg Chicares, 2019/06/12
- [lmi-commits] [lmi] master 8862ffc 7/9: Improve const correctness, Greg Chicares, 2019/06/12