mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-25 22:21:14 +01:00
(bug 211) This fix is correct as the "numbers" array has 10 elements, not 12.
This commit is contained in:
@@ -184,7 +184,7 @@ void SelectionBar::Populate()
|
|||||||
wxDefaultPosition, wxSize(80, -1));
|
wxDefaultPosition, wxSize(80, -1));
|
||||||
mRateBox->SetName(_("Project Rate (Hz):"));
|
mRateBox->SetName(_("Project Rate (Hz):"));
|
||||||
wxTextValidator vld(wxFILTER_INCLUDE_CHAR_LIST);
|
wxTextValidator vld(wxFILTER_INCLUDE_CHAR_LIST);
|
||||||
vld.SetIncludes(wxArrayString(12, numbers));
|
vld.SetIncludes(wxArrayString(10, numbers));
|
||||||
mRateBox->SetValidator(vld);
|
mRateBox->SetValidator(vld);
|
||||||
mRateBox->SetValue(wxString::Format(wxT("%d"), (int)mRate));
|
mRateBox->SetValue(wxString::Format(wxT("%d"), (int)mRate));
|
||||||
UpdateRates(); // Must be done _after_ setting value on mRateBox!
|
UpdateRates(); // Must be done _after_ setting value on mRateBox!
|
||||||
|
|||||||
Reference in New Issue
Block a user