Fixed Symbol Library editor crash on start
Added a null pointer check missing in 51c7381f
Fixes: lp:1775414
* https://bugs.launchpad.net/kicad/+bug/1775414
This commit is contained in:
parent
228881f552
commit
64e98c8e54
|
@ -126,7 +126,8 @@ COMPONENT_TREE::COMPONENT_TREE( wxWindow* aParent, SYMBOL_LIB_TABLE* aSymLibTabl
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
// Scrollbars must be always enabled to prevent an infinite event loop
|
// Scrollbars must be always enabled to prevent an infinite event loop
|
||||||
// more details: http://trac.wxwidgets.org/ticket/18141
|
// more details: http://trac.wxwidgets.org/ticket/18141
|
||||||
m_details_ctrl->ShowScrollbars( wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS );
|
if( m_details_ctrl )
|
||||||
|
m_details_ctrl->ShowScrollbars( wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS );
|
||||||
#endif /* __WXGTK__ */
|
#endif /* __WXGTK__ */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue