Reset tool tip when the Flatten button is pressed.

This commit is contained in:
martynshaw99 2013-04-20 20:42:54 +00:00
parent 09c88f31c7
commit 025c6ad6d6

View File

@ -2613,6 +2613,14 @@ void EqualizationDialog::OnClear(wxCommandEvent &event)
m_sliders[i]->SetValue(0);
m_sliders_old[i] = 0;
m_EQVals[i] = 0.;
#if wxUSE_TOOLTIPS
wxString tip;
if( thirdOct[i] < 1000.)
tip.Printf( wxT("%dHz\n%.1fdB"), (int)thirdOct[i], 0. );
else
tip.Printf( wxT("%gkHz\n%.1fdB"), thirdOct[i]/1000., 0. );
m_sliders[i]->SetToolTip(tip);
#endif
}
}
EnvelopeUpdated();