Fixed a potential segfault.

This commit is contained in:
Matthias Koefferlein 2020-06-06 10:27:12 +02:00
parent 3f4c2a7e4a
commit e71c0dcb23
1 changed files with 3 additions and 1 deletions

View File

@ -4681,7 +4681,9 @@ LayoutView::active_library_changed (int /*index*/)
void
LayoutView::cellview_changed (unsigned int index)
{
mp_hierarchy_panel->do_update_content (index);
if (mp_hierarchy_panel) {
mp_hierarchy_panel->do_update_content (index);
}
cellview_changed_event (index);