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:
parent
2af3a8ca7e
commit
534741de78
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user