DRC layer's flatten now returns a proper DRCLayer object, enabled flat layers to become input also for deep mode L2N

This commit is contained in:
matthias 2019-03-13 16:14:27 +01:00
parent 15040101ec
commit e361a528a9
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ void LayoutToNetlist::register_layer (const db::Region &region, const std::strin
if (region.empty ()) {
dl = dss ().empty_layer (m_layout_index);
} else {
throw tl::Exception (tl::to_string (tr ("Layer is not a deep region and cannot be registered with name: ")) + n);
dl = dss ().create_from_flat (region, true);
}
} else {

View File

@ -2367,7 +2367,7 @@ CODE
# to a flat collection of polygons, edges or edge pairs.
def flatten
@engine._cmd(@data, :flatten)
DRC::DRCLayer::new(@engine, @engine._cmd(@data, :flatten))
end
# %DRC%