yPos += 35;
- wxString choices[2];
+ wxString *choices = new wxString[2];
choices[0] = _("All");
choices[1] = _("Pages");
// Calls wxWindow::OnInitDialog and then wxGenericPrintDialog::TransferDataToWindow
InitDialog();
+ delete[] choices;
}
int wxGenericPrintDialog::ShowModal(void)
sprintf(buf, "%d", printData.GetFromPage());
fromText->SetValue(buf);
- sprintf(buf, "%d", printData.GetFromPage());
+ sprintf(buf, "%d", printData.GetToPage());
toText->SetValue(buf);
if (printData.GetAllPages())
wxDC *wxGenericPrintDialog::GetPrintDC(void)
{
- return new wxPostScriptDC(wxThePrintSetupData->GetPrinterFile(), FALSE, NULL);
+ return new wxPostScriptDC(wxThePrintSetupData->GetPrinterFile(), FALSE, (wxWindow *) NULL);
}
/*
paperTypeChoice = CreatePaperTypeChoice(&xPos, &yPos);
- wxString choices[2];
+ wxString *choices = new wxString[2];
choices[0] = _("Portrait");
choices[1] = _("Landscape");
Centre(wxBOTH);
InitDialog();
+ delete[] choices;
}
wxGenericPrintSetupDialog::~wxGenericPrintSetupDialog(void)
xPos = 5;
- wxString choices[2];
+ wxString *choices = new wxString[2];
choices[0] = _("Portrait");
choices[1] = _("Landscape");
orientationRadioBox = new wxRadioBox(this, wxPRINTID_ORIENTATION, _("Orientation"),
Centre(wxBOTH);
InitDialog();
+ delete [] choices;
}
wxGenericPageSetupDialog::~wxGenericPageSetupDialog(void)