diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index 4b4941d345..42fca79834 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -267,7 +267,10 @@ wxPrintDialogData::wxPrintDialogData() m_printSelection = false; m_printEnableSelection = false; m_printEnablePageNumbers = true; - m_printEnablePrintToFile = true; + + wxPrintFactory* factory = wxPrintFactory::GetFactory(); + m_printEnablePrintToFile = ! factory->HasOwnPrintToFile(); + m_printEnableHelp = false; m_printSetupDialog = false; } diff --git a/src/generic/prntdlgg.cpp b/src/generic/prntdlgg.cpp index eecef2f526..c6bda3b8d3 100644 --- a/src/generic/prntdlgg.cpp +++ b/src/generic/prntdlgg.cpp @@ -177,9 +177,6 @@ void wxGenericPrintDialog::Init(wxWindow * WXUNUSED(parent)) m_printToFileCheckBox = new wxCheckBox( this, wxPRINTID_PRINTTOFILE, _("Print to File") ); flex->Add( m_printToFileCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); - if (factory->HasOwnPrintToFile()) - m_printToFileCheckBox->Enable( false ); - m_setupButton = new wxButton(this, wxPRINTID_SETUP, _("Setup...") ); flex->Add( m_setupButton, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );