Allow Rectilinear to be tagged as external components in GdsParser.

This commit is contained in:
Jean-Paul Chaput 2023-07-15 21:24:38 +02:00
parent 77463c4803
commit 9d98c9aafd
1 changed files with 12 additions and 0 deletions

View File

@ -1782,6 +1782,18 @@ namespace {
NetExternalComponents::setExternal( p );
toDestroy.push_back( component );
cdebug_log(101,0) << "> external duplicate " << p << endl;
} else {
Rectilinear* rectilinear = dynamic_cast<Rectilinear*>( component );
if (rectilinear) {
rectilinear = Rectilinear::create( net
, rectilinear->getLayer()
, rectilinear->getPoints() );
NetExternalComponents::setExternal( rectilinear );
} else {
cerr << Error( "GdsStream::makeExternals(): Unmanaged component %s for net \"%s\"."
, getString(component).c_str()
, getString(net->getName()).c_str() ) << endl;
}
}
}
}