Fixed a potential segfault.

This commit is contained in:
Matthias Koefferlein 2020-06-06 10:25:20 +02:00
parent 95111f8aa8
commit b72f819d57
1 changed files with 3 additions and 1 deletions

View File

@ -4739,7 +4739,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);