1
0
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:
Paul Licameli 2015-08-17 08:37:59 -04:00
parent 167f1eac82
commit 5d2ccbc207

View File

@ -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)