Skip to content

Commit

Permalink
Fixed issue #1874 (crash when copying a cell to another layout)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koefferlein committed Sep 28, 2024
1 parent 2d4f5d8 commit 0dd7dfb
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 0dd7dfb

Please sign in to comment.