Maybe fixed performance issue: usually it's not a good idea to iterate the layout's hierarchy while deleting something from it.

This commit is contained in:
Matthias Koefferlein 2020-04-14 22:48:18 +02:00
parent 9c62bb015f
commit 61714090e3
1 changed files with 2 additions and 0 deletions

View File

@ -1397,6 +1397,8 @@ DEFImporter::do_read (db::Layout &layout)
if (! groups.empty ()) {
db::LayoutLocker locker (&layout);
others_cell = &layout.cell (layout.add_cell ("NOGROUP"));
design.insert (db::CellInstArray (others_cell->cell_index (), db::Trans ()));