mirror of https://github.com/KLayout/klayout.git
Fixed issue #1874 (crash when copying a cell to another layout)
This commit is contained in:
parent
2d4f5d822c
commit
0dd7dfb48a
|
|
@ -158,8 +158,10 @@ ClipboardData::do_insert (db::Layout &layout, const db::ICplxTrans *trans, db::C
|
||||||
{
|
{
|
||||||
// identify the cells our target is eventually called from, including itself
|
// identify the cells our target is eventually called from, including itself
|
||||||
std::set<db::cell_index_type> callers;
|
std::set<db::cell_index_type> callers;
|
||||||
|
if (cell) {
|
||||||
cell->collect_caller_cells (callers);
|
cell->collect_caller_cells (callers);
|
||||||
callers.insert (cell->cell_index ());
|
callers.insert (cell->cell_index ());
|
||||||
|
}
|
||||||
|
|
||||||
std::vector <unsigned int> new_layers;
|
std::vector <unsigned int> new_layers;
|
||||||
PropertyMapper prop_id_map (&layout, &m_layout);
|
PropertyMapper prop_id_map (&layout, &m_layout);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue