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:
parent
a24adb59d9
commit
513256854e
@ -102,6 +102,12 @@ float ContrastDialog::GetDB()
|
|||||||
AudacityProject *p = GetActiveProject();
|
AudacityProject *p = GetActiveProject();
|
||||||
TrackListOfKindIterator iter(Track::Wave, p->GetTracks());
|
TrackListOfKindIterator iter(Track::Wave, p->GetTracks());
|
||||||
Track *t = iter.First();
|
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)
|
if(mT0 > mT1)
|
||||||
{
|
{
|
||||||
wxMessageDialog m(NULL, _("Start time after end time!\nPlease enter reasonable times."), _("Error"), wxOK);
|
wxMessageDialog m(NULL, _("Start time after end time!\nPlease enter reasonable times."), _("Error"), wxOK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user