mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-03 15:20:17 +01:00
Fix bug #1123
This commit is contained in:
@@ -298,6 +298,7 @@ END_EVENT_TABLE()
|
||||
Exporter::Exporter()
|
||||
{
|
||||
mMixerSpec = NULL;
|
||||
mBook = NULL;
|
||||
|
||||
SetFileDialogTitle( _("Export Audio") );
|
||||
|
||||
@@ -902,7 +903,8 @@ void Exporter::OnFilterChanged(wxFileCtrlEvent & evt)
|
||||
{
|
||||
int index = evt.GetFilterIndex();
|
||||
|
||||
if (index < 0 || index >= (int) mBook->GetPageCount())
|
||||
// On GTK, this event can fire before the userpane is created
|
||||
if (mBook == NULL || index < 0 || index >= (int) mBook->GetPageCount())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user