From 055b40c3f2e59feaa3260fe6145553489bc9cc36 Mon Sep 17 00:00:00 2001 From: lllucius Date: Mon, 29 Dec 2014 03:46:57 +0000 Subject: [PATCH] Fix wx3 build --- src/widgets/Meter.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/widgets/Meter.cpp b/src/widgets/Meter.cpp index cad154d62..b22531186 100644 --- a/src/widgets/Meter.cpp +++ b/src/widgets/Meter.cpp @@ -1861,12 +1861,11 @@ void Meter::OnPreferences(wxCommandEvent & WXUNUSED(event)) if (dlg.ShowModal() == wxID_OK) { - wxChar *style[] = - { - wxT("AutomaticStereo"), - wxT("HorizontalStereo"), - wxT("VerticalStereo") - }; + wxArrayString style; + style.Add(wxT("AutomaticStereo")); + style.Add(wxT("HorizontalStereo")); + style.Add(wxT("VerticalStereo")); + int s = 0; s = automatic->GetValue() ? 0 : s; s = horizontal->GetValue() ? 1 : s;