Skip to content

Commit

Permalink
Merge pull request #1875 from KLayout/issue-1874
Browse files Browse the repository at this point in the history
Fixed issue #1874 (crash when copying a cell to another layout)
  • Loading branch information
klayoutmatthias authored Oct 6, 2024
2 parents 7953cad + 0dd7dfb commit 0f79b44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/db/db/dbClipboardData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
std::set<db::cell_index_type> callers;
cell->collect_caller_cells (callers);
callers.insert (cell->cell_index ());
if (cell) {
cell->collect_caller_cells (callers);
callers.insert (cell->cell_index ());
}

std::vector <unsigned int> new_layers;
PropertyMapper prop_id_map (&layout, &m_layout);
Expand Down

0 comments on commit 0f79b44

Please sign in to comment.