lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master bf74aeb 3/4: Work around a wxPdfDoc regressio


From: Greg Chicares
Subject: [lmi-commits] [lmi] master bf74aeb 3/4: Work around a wxPdfDoc regression
Date: Sat, 8 Aug 2020 14:54:20 -0400 (EDT)

branch: master
commit bf74aeba74bd3ba076219f27743a6acc19ede5a4
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Work around a wxPdfDoc regression
    
    Explicitly forced PDF background to be transparent (as it should be by
    default) for a legend superimposed on a graphical banner. See:
      https://lists.nongnu.org/archive/html/lmi/2020-08/msg00003.html
---
 group_quote_pdf_gen_wx.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/group_quote_pdf_gen_wx.cpp b/group_quote_pdf_gen_wx.cpp
index 1cde470..45ddc52 100644
--- a/group_quote_pdf_gen_wx.cpp
+++ b/group_quote_pdf_gen_wx.cpp
@@ -888,6 +888,9 @@ void group_quote_pdf_generator_wx::output_image_header
 
     wxDCFontChanger set_bigger_font(pdf_dc, pdf_dc.GetFont().Scaled(1.5));
     wxDCTextColorChanger set_white_text(pdf_dc, *wxWHITE);
+    // PDF !! This should not be necessary--see:
+    //   https://lists.nongnu.org/archive/html/lmi/2020-08/msg00003.html
+    wxDCTextBgModeChanger set_transparent_background(pdf_dc, 
wxPENSTYLE_TRANSPARENT);
 
     // Don't use html::text::from() here: instead, call
     // wxString::FromUTF8() directly, e.g., to preserve literal '&'.



reply via email to

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