From 7ba2eb427274efb7b0518f4bd85fa087aa11e910 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Wed, 25 Nov 1998 15:15:24 +0000 Subject: [PATCH] fixed internal compiler error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/prntdlgg.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/generic/prntdlgg.cpp b/src/generic/prntdlgg.cpp index 7aec75e74b..8f1968386e 100644 --- a/src/generic/prntdlgg.cpp +++ b/src/generic/prntdlgg.cpp @@ -90,7 +90,7 @@ wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent, wxPrintData* data): yPos += 35; - wxString choices[2]; + wxString *choices = new wxString[2]; choices[0] = _("All"); choices[1] = _("Pages"); @@ -139,6 +139,7 @@ wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent, wxPrintData* data): // Calls wxWindow::OnInitDialog and then wxGenericPrintDialog::TransferDataToWindow InitDialog(); + delete[] choices; } int wxGenericPrintDialog::ShowModal(void) @@ -317,7 +318,7 @@ wxGenericPrintSetupDialog::wxGenericPrintSetupDialog(wxWindow *parent, wxPrintSe paperTypeChoice = CreatePaperTypeChoice(&xPos, &yPos); - wxString choices[2]; + wxString *choices = new wxString[2]; choices[0] = _("Portrait"); choices[1] = _("Landscape"); @@ -351,6 +352,7 @@ wxGenericPrintSetupDialog::wxGenericPrintSetupDialog(wxWindow *parent, wxPrintSe Centre(wxBOTH); InitDialog(); + delete[] choices; } wxGenericPrintSetupDialog::~wxGenericPrintSetupDialog(void) -- 2.45.2