Set footprint splitter window canvas to transient

The splitter window can not be the parent to any additional windows.
If it acquires a child that persists past the lifetime of the splitter
window, we get a segfault.
This commit is contained in:
Seth Hillbrand 2018-06-05 21:22:13 -07:00
parent 64e98c8e54
commit a5c213c23d
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT( SCH_BASE_FRAME* aParent, const
vsplitter ? static_cast<wxWindow *>( vsplitter ) : static_cast<wxWindow *>( this ), vsplitter ? static_cast<wxWindow *>( vsplitter ) : static_cast<wxWindow *>( this ),
wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE | wxSP_3DSASH ); wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE | wxSP_3DSASH );
//Avoid the splitter window being assigned as the Parent to additional windows
m_splitter_tree_canvas->SetExtraStyle( wxWS_EX_TRANSIENT );
auto details = aShowFootprints ? nullptr : new wxHtmlWindow( auto details = aShowFootprints ? nullptr : new wxHtmlWindow(
vsplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO ); vsplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );