Browse Source

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.
pull/17/head
Seth Hillbrand 7 years ago
parent
commit
a5c213c23d
  1. 3
      eeschema/dialogs/dialog_choose_component.cpp

3
eeschema/dialogs/dialog_choose_component.cpp

@ -76,6 +76,9 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT( SCH_BASE_FRAME* aParent, const
vsplitter ? static_cast<wxWindow *>( vsplitter ) : static_cast<wxWindow *>( this ),
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(
vsplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );

Loading…
Cancel
Save