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:
parent
64e98c8e54
commit
a5c213c23d
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue