mirror of https://github.com/KLayout/klayout.git
Allow flatten for non-editable layouts too
This commit is contained in:
parent
d5f18ca1c1
commit
ed73046c13
|
|
@ -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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue