Fix position of wxASSERTs
Moved one ASSERT that was in the wrong place and added a new one. This might give a little more information in mac debug builds about Bug 1636 - (Mac) Equalization: Crash selecting the "RIAA" or "Telephone" curves. This is NOT a fix.
This commit is contained in:
parent
927c500acd
commit
09607c278d
|
@ -1613,8 +1613,8 @@ void EffectEqualization::SaveCurves(const wxString &fileName)
|
|||
void EffectEqualization::setCurve(int currentCurve)
|
||||
{
|
||||
// Set current choice
|
||||
Select(currentCurve);
|
||||
wxASSERT( currentCurve < (int) mCurves.GetCount() );
|
||||
Select(currentCurve);
|
||||
|
||||
Envelope *env;
|
||||
int numPoints = (int) mCurves[currentCurve].points.GetCount();
|
||||
|
@ -2660,6 +2660,7 @@ void EffectEqualization::OnSliderDBMAX(wxCommandEvent & WXUNUSED(event))
|
|||
void EffectEqualization::OnCurve(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
// Select NEW curve
|
||||
wxASSERT( mCurve != NULL );
|
||||
setCurve( mCurve->GetCurrentSelection() );
|
||||
if( !mDrawMode )
|
||||
UpdateGraphic();
|
||||
|
|
Loading…
Reference in New Issue