Update of /cvsroot/audacity/audacity-src/src/toolbars In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv26683
Modified Files: SelectionBar.cpp Log Message: Even better Project Rate editing fix. Index: SelectionBar.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/toolbars/SelectionBar.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- SelectionBar.cpp 7 May 2008 02:27:09 -0000 1.23 +++ SelectionBar.cpp 19 May 2008 21:16:31 -0000 1.24 @@ -447,16 +447,9 @@ } } -void SelectionBar::OnRate(wxCommandEvent & WXUNUSED(event)) +void SelectionBar::OnRate(wxCommandEvent &evt) { - int nSel = mRateBox->GetSelection(); - wxString sValue; - if (nSel != -1) // one of the existing choices - sValue = mRateBox->GetString(nSel); - else - sValue = mRateBox->GetValue(); - - if (sValue.ToDouble(&mRate) && // is a numeric value + if (evt.GetString().ToDouble(&mRate) && // is a numeric value (mRate != 0.0)) { if (mLeftTime) mLeftTime->SetSampleRate(mRate); ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs