lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6331] Write new "short" product name over graphic banner


From: Greg Chicares
Subject: [lmi-commits] [6331] Write new "short" product name over graphic banner
Date: Wed, 07 Oct 2015 22:12:55 +0000

Revision: 6331
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6331
Author:   chicares
Date:     2015-10-07 22:12:55 +0000 (Wed, 07 Oct 2015)
Log Message:
-----------
Write new "short" product name over graphic banner

Modified Paths:
--------------
    lmi/trunk/group_quote_pdf_gen_wx.cpp

Modified: lmi/trunk/group_quote_pdf_gen_wx.cpp
===================================================================
--- lmi/trunk/group_quote_pdf_gen_wx.cpp        2015-10-07 21:56:47 UTC (rev 
6330)
+++ lmi/trunk/group_quote_pdf_gen_wx.cpp        2015-10-07 22:12:55 UTC (rev 
6331)
@@ -293,6 +293,7 @@
         std::string prepared_by_;
         std::string guarantee_issue_max_;
         std::string product_;
+        std::string short_product_;
         std::string available_riders_;
         std::string plan_type_;
         std::string premium_mode_;
@@ -369,6 +370,7 @@
     company_          = ledger.CorpName;
     prepared_by_      = ledger.ProducerName;
     product_          = ledger.ProductName;
+    short_product_    = ledger.GroupQuoteShortProductName;
     available_riders_ = "Waiver, ADB, ABR, Spouse or Child"; // FIXME
     premium_mode_     = ledger.InitErMode;
     contract_state_   = ledger.GetStatePostalAbbrev();
@@ -758,9 +760,10 @@
     wxDCFontChanger set_bigger_font(pdf_dc, pdf_dc.GetFont().Scaled(1.5));
     wxDCTextColourChanger set_white_text(pdf_dc, *wxWHITE);
 
-    // FIXME Specification change: use product description here, not company_.
+    // Don't use escape_for_html_elem() here: instead, call
+    // wxString::FromUTF8() directly, e.g., to preserve literal '&'.
     wxString const image_text
-        (report_data_.company_
+        (wxString::FromUTF8(report_data_.short_product_.c_str())
          + "\nPremium & Benefit Summary"
         );
 




reply via email to

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