]> git.saurik.com Git - wxWidgets.git/commitdiff
Pass the print data to the wx.PrintDialogData ctor.
authorRobin Dunn <robin@alldunn.com>
Mon, 13 Jun 2005 20:48:52 +0000 (20:48 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 13 Jun 2005 20:48:52 +0000 (20:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/plot.py

index a5fbb89e98031198ddd9ec0784579b70eb617085..e1d02016b62c0845100a9820e7aa31ab69363e89 100644 (file)
@@ -564,8 +564,7 @@ class PlotCanvas(wx.Window):
         """Print current plot."""
         if paper != None:
             self.print_data.SetPaperId(paper)
-        pdd = wx.PrintDialogData()
-        pdd.SetPrintData(self.print_data)
+        pdd = wx.PrintDialogData(self.print_data)
         printer = wx.Printer(pdd)
         out = PlotPrintout(self)
         print_ok = printer.Print(self.parent, out)