Make the copy ctor for the wxPrint*Data classes avaialble from
Python. This is so we can ensure we get a copy of the data objects when needed instead of just a reference to a data object within another that may get deleted unexpectedly. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,7 +40,10 @@ enum wxPrintMode
|
||||
|
||||
class wxPrintData : public wxObject {
|
||||
public:
|
||||
%nokwargs wxPrintData;
|
||||
wxPrintData();
|
||||
wxPrintData(const wxPrintData& data); // for making copies
|
||||
|
||||
~wxPrintData();
|
||||
|
||||
int GetNoCopies();
|
||||
@@ -103,7 +106,9 @@ public:
|
||||
|
||||
class wxPageSetupDialogData : public wxObject {
|
||||
public:
|
||||
%nokwargs wxPageSetupDialogData;
|
||||
wxPageSetupDialogData();
|
||||
wxPageSetupDialogData(const wxPageSetupDialogData& data); // for making copies
|
||||
~wxPageSetupDialogData();
|
||||
|
||||
void EnableHelp(bool flag);
|
||||
@@ -168,7 +173,7 @@ class wxPrintDialogData : public wxObject {
|
||||
public:
|
||||
%nokwargs wxPrintDialogData;
|
||||
wxPrintDialogData();
|
||||
wxPrintDialogData(const wxPrintData& printData);
|
||||
wxPrintDialogData(const wxPrintData& printData); // for making copies
|
||||
~wxPrintDialogData();
|
||||
|
||||
int GetFromPage() const;
|
||||
|
Reference in New Issue
Block a user