Merge pull request #1262 from KLayout/issue-1253

Fixed isse #1253
This commit is contained in:
Matthias Köfferlein 2023-01-24 20:38:25 +01:00 committed by GitHub
commit 18900215e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
}