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:
Robin Dunn 2005-04-03 23:44:14 +00:00
parent 29998406a8
commit a721e6ecd5

View File

@ -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):