1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-11 09:31:13 +02:00

Fix for bug #906

This commit is contained in:
Leland Lucius 2015-04-27 20:28:41 -05:00
parent a24adb59d9
commit 513256854e

View File

@ -102,6 +102,12 @@ float ContrastDialog::GetDB()
AudacityProject *p = GetActiveProject();
TrackListOfKindIterator iter(Track::Wave, p->GetTracks());
Track *t = iter.First();
if(!t)
{
wxMessageDialog m(NULL, _("No wave tracks exist."), _("Error"), wxOK);
m.ShowModal();
return 1234.0; // 'magic number', but the whole +ve dB range will 'almost' never occur
}
if(mT0 > mT1)
{
wxMessageDialog m(NULL, _("Start time after end time!\nPlease enter reasonable times."), _("Error"), wxOK);