[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6266] Simplify the way PDF file name is set (VZ)
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6266] Simplify the way PDF file name is set (VZ) |
Date: |
Wed, 26 Aug 2015 16:28:21 +0000 |
Revision: 6266
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6266
Author: chicares
Date: 2015-08-26 16:28:20 +0000 (Wed, 26 Aug 2015)
Log Message:
-----------
Simplify the way PDF file name is set (VZ)
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-08-26 15:46:20 UTC (rev
6265)
+++ lmi/trunk/group_quote_pdf_gen_wx.cpp 2015-08-26 16:28:20 UTC (rev
6266)
@@ -448,21 +448,11 @@
wxPrintData print_data;
print_data.SetOrientation(wxLANDSCAPE);
print_data.SetPaperId(wxPAPER_LETTER);
+ print_data.SetFilename(output_filename);
wxPdfDC pdf_dc(print_data);
-
page_.initialize(pdf_dc);
-
do_generate_pdf(pdf_dc);
-
- // This is pretty baroque: to specify the name of the file after wxPdfDC
- // creation, we need to poke print data stored inside it.
- wxPdfDCImpl* const impl = dynamic_cast<wxPdfDCImpl*>(pdf_dc.GetImpl());
- LMI_ASSERT(impl);
-
- impl->GetPrintData().SetFilename(output_filename);
-
- // After the above, EndDoc() will produce output in the specified file.
pdf_dc.EndDoc();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6266] Simplify the way PDF file name is set (VZ),
Greg Chicares <=