Allow flatten for non-editable layouts too

This commit is contained in:
Matthias Koefferlein 2021-01-16 18:08:23 +01:00
parent d5f18ca1c1
commit ed73046c13
1 changed files with 1 additions and 1 deletions

View File

@ -984,7 +984,7 @@ Layout::flatten (const db::Cell &source_cell, db::Cell &target_cell, const db::I
// even an iteration of the instances requires an update.
start_changes ();
db::Instances old_instances (0);
db::Instances old_instances (&target_cell);
old_instances = target_cell.instances ();
target_cell.clear_insts ();