mirror of https://github.com/KLayout/klayout.git
parent
d764adb101
commit
60aab8b3fd
|
|
@ -286,6 +286,8 @@ CommonReader::read (db::Layout &layout, const db::LoadLayoutOptions &options)
|
|||
{
|
||||
init (options);
|
||||
|
||||
tl_assert (!layout.under_construction ());
|
||||
|
||||
m_common_options.layer_map.prepare (layout);
|
||||
|
||||
layout.start_changes ();
|
||||
|
|
@ -298,6 +300,11 @@ CommonReader::read (db::Layout &layout, const db::LoadLayoutOptions &options)
|
|||
throw;
|
||||
}
|
||||
|
||||
// A cleanup may be necessary because of the following scenario: if library proxies contain subcells
|
||||
// which are proxies itself, the proxy update may make them orphans (the proxies are regenerated).
|
||||
// The cleanup will removed these.
|
||||
layout.cleanup ();
|
||||
|
||||
return m_layer_map_out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue