This commit is contained in:
Matthias Koefferlein 2023-01-24 00:42:31 +01:00
parent cd2535af09
commit bc63a1cd40
2 changed files with 5 additions and 6 deletions

View File

@ -3402,12 +3402,12 @@ LayoutViewBase::load_layout (const std::string &filename, const db::LoadLayoutOp
std::vector <db::cell_index_type> p;
p.push_back (*top);
select_cell (p, cv_index);
} else {
// even if there is no cell, select the cellview item
// to support applications with an active cellview (that is however invalid)
set_active_cellview_index (cv_index);
}
// even if there is no cell, select the cellview item
// to support applications with an active cellview (that is however invalid)
set_active_cellview_index (cv_index);
bool add_other_layers = m_add_other_layers;
// Use the "layer-properties-file" meta info from the handle to get the layer properties file.

View File

@ -1258,9 +1258,8 @@ LayoutView::set_active_cellview_index (int index)
if (index >= 0 && index < int (cellviews ())) {
if (mp_hierarchy_panel) {
mp_hierarchy_panel->select_active (index);
} else {
LayoutViewBase::set_active_cellview_index (index);
}
LayoutViewBase::set_active_cellview_index (index);
}
}