1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-23 16:08:07 +02:00

Fix crash when displaying file dialog on Windows

This commit is contained in:
Leland Lucius 2015-08-07 16:42:39 -05:00
parent 2af3a8ca7e
commit 534741de78

View File

@ -182,7 +182,10 @@ void FileDialog::MSWOnSize(HWND hDlg, LPOPENFILENAME pOfn)
SetSize(r);
mRoot->SetSize(r.GetWidth(), mRoot->GetSize().GetHeight());
if (mRoot)
{
mRoot->SetSize(r.GetWidth(), mRoot->GetSize().GetHeight());
}
SetHWND(NULL);
}
@ -640,6 +643,8 @@ FileDialog::FileDialog(wxWindow *parent,
void FileDialog::Init()
{
mRoot = NULL;
// NB: all style checks are done by wxFileDialogBase::Create
m_bMovedWindow = false;