mirror of https://github.com/KLayout/klayout.git
commit
18900215e6
|
|
@ -3402,12 +3402,12 @@ LayoutViewBase::load_layout (const std::string &filename, const db::LoadLayoutOp
|
||||||
std::vector <db::cell_index_type> p;
|
std::vector <db::cell_index_type> p;
|
||||||
p.push_back (*top);
|
p.push_back (*top);
|
||||||
select_cell (p, cv_index);
|
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;
|
bool add_other_layers = m_add_other_layers;
|
||||||
|
|
||||||
// Use the "layer-properties-file" meta info from the handle to get the layer properties file.
|
// Use the "layer-properties-file" meta info from the handle to get the layer properties file.
|
||||||
|
|
|
||||||
|
|
@ -1258,9 +1258,8 @@ LayoutView::set_active_cellview_index (int index)
|
||||||
if (index >= 0 && index < int (cellviews ())) {
|
if (index >= 0 && index < int (cellviews ())) {
|
||||||
if (mp_hierarchy_panel) {
|
if (mp_hierarchy_panel) {
|
||||||
mp_hierarchy_panel->select_active (index);
|
mp_hierarchy_panel->select_active (index);
|
||||||
} else {
|
|
||||||
LayoutViewBase::set_active_cellview_index (index);
|
|
||||||
}
|
}
|
||||||
|
LayoutViewBase::set_active_cellview_index (index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue