Copy the wx.PrintData objects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
29998406a8
commit
a721e6ecd5
@ -556,7 +556,7 @@ class PlotCanvas(wx.Window):
|
||||
self.pageSetupData.SetMarginBottomRight(data.GetMarginBottomRight())
|
||||
self.pageSetupData.SetMarginTopLeft(data.GetMarginTopLeft())
|
||||
self.pageSetupData.SetPrintData(data.GetPrintData())
|
||||
self.print_data=data.GetPrintData() # updates print_data
|
||||
self.print_data=wx.PrintData(data.GetPrintData()) # updates print_data
|
||||
finally:
|
||||
dlg.Destroy()
|
||||
|
||||
@ -570,7 +570,7 @@ class PlotCanvas(wx.Window):
|
||||
out = PlotPrintout(self)
|
||||
print_ok = printer.Print(self.parent, out)
|
||||
if print_ok:
|
||||
self.print_data = printer.GetPrintDialogData().GetPrintData()
|
||||
self.print_data = wx.PrintData(printer.GetPrintDialogData().GetPrintData())
|
||||
out.Destroy()
|
||||
|
||||
def PrintPreview(self):
|
||||
|
Loading…
Reference in New Issue
Block a user