mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +02:00
Don't use a "magic number"
This commit is contained in:
parent
167f1eac82
commit
5d2ccbc207
@ -229,7 +229,8 @@ void WaveformPrefs::OnApply(wxCommandEvent &)
|
|||||||
|
|
||||||
void WaveformPrefs::EnableDisableRange()
|
void WaveformPrefs::EnableDisableRange()
|
||||||
{
|
{
|
||||||
mRangeChoice->Enable(mScaleChoice->GetSelection() == 1);
|
mRangeChoice->Enable
|
||||||
|
(mScaleChoice->GetSelection() == WaveformSettings::stLogarithmic);
|
||||||
}
|
}
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(WaveformPrefs, PrefsPanel)
|
BEGIN_EVENT_TABLE(WaveformPrefs, PrefsPanel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user