mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 16:41:14 +02:00
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)
|
void EffectEqualization::setCurve(int currentCurve)
|
||||||
{
|
{
|
||||||
// Set current choice
|
// Set current choice
|
||||||
Select(currentCurve);
|
|
||||||
wxASSERT( currentCurve < (int) mCurves.GetCount() );
|
wxASSERT( currentCurve < (int) mCurves.GetCount() );
|
||||||
|
Select(currentCurve);
|
||||||
|
|
||||||
Envelope *env;
|
Envelope *env;
|
||||||
int numPoints = (int) mCurves[currentCurve].points.GetCount();
|
int numPoints = (int) mCurves[currentCurve].points.GetCount();
|
||||||
@ -2660,6 +2660,7 @@ void EffectEqualization::OnSliderDBMAX(wxCommandEvent & WXUNUSED(event))
|
|||||||
void EffectEqualization::OnCurve(wxCommandEvent & WXUNUSED(event))
|
void EffectEqualization::OnCurve(wxCommandEvent & WXUNUSED(event))
|
||||||
{
|
{
|
||||||
// Select NEW curve
|
// Select NEW curve
|
||||||
|
wxASSERT( mCurve != NULL );
|
||||||
setCurve( mCurve->GetCurrentSelection() );
|
setCurve( mCurve->GetCurrentSelection() );
|
||||||
if( !mDrawMode )
|
if( !mDrawMode )
|
||||||
UpdateGraphic();
|
UpdateGraphic();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user