Corrected someone's double-initialisation bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -113,6 +113,11 @@ wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
|
|||||||
|
|
||||||
wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
|
wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
|
||||||
wxPrintData* data)
|
wxPrintData* data)
|
||||||
|
: wxDialog(parent, -1, _("Print"),
|
||||||
|
wxPoint(0, 0), wxSize(600, 600),
|
||||||
|
wxDEFAULT_DIALOG_STYLE |
|
||||||
|
wxDIALOG_MODAL |
|
||||||
|
wxTAB_TRAVERSAL)
|
||||||
{
|
{
|
||||||
if ( data )
|
if ( data )
|
||||||
m_printDialogData = *data;
|
m_printDialogData = *data;
|
||||||
@@ -122,8 +127,8 @@ wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
|
|||||||
|
|
||||||
void wxGenericPrintDialog::Init(wxWindow *parent)
|
void wxGenericPrintDialog::Init(wxWindow *parent)
|
||||||
{
|
{
|
||||||
wxDialog::Create(parent, -1, _("Print"), wxPoint(0, 0), wxSize(600, 600),
|
// wxDialog::Create(parent, -1, _("Print"), wxPoint(0, 0), wxSize(600, 600),
|
||||||
wxDEFAULT_DIALOG_STYLE | wxDIALOG_MODAL | wxTAB_TRAVERSAL);
|
// wxDEFAULT_DIALOG_STYLE | wxDIALOG_MODAL | wxTAB_TRAVERSAL);
|
||||||
|
|
||||||
(void)new wxStaticBox( this, -1, _( "Printer options" ), wxPoint( 5, 5), wxSize( 300, 60 ) );
|
(void)new wxStaticBox( this, -1, _( "Printer options" ), wxPoint( 5, 5), wxSize( 300, 60 ) );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user