From f455fa3f22713f9f607e49747c1252a9226346f1 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Tue, 31 Aug 2010 05:44:57 +0000 Subject: [PATCH] (bug 211) This fix is correct as the "numbers" array has 10 elements, not 12. --- src/toolbars/SelectionBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbars/SelectionBar.cpp b/src/toolbars/SelectionBar.cpp index 5301d6eb2..0abde8ad4 100644 --- a/src/toolbars/SelectionBar.cpp +++ b/src/toolbars/SelectionBar.cpp @@ -184,7 +184,7 @@ void SelectionBar::Populate() wxDefaultPosition, wxSize(80, -1)); mRateBox->SetName(_("Project Rate (Hz):")); wxTextValidator vld(wxFILTER_INCLUDE_CHAR_LIST); - vld.SetIncludes(wxArrayString(12, numbers)); + vld.SetIncludes(wxArrayString(10, numbers)); mRateBox->SetValidator(vld); mRateBox->SetValue(wxString::Format(wxT("%d"), (int)mRate)); UpdateRates(); // Must be done _after_ setting value on mRateBox!