In CRL::GdsParser, GDS layers indexes up to 1024, just in case.

This commit is contained in:
Jean-Paul Chaput 2021-06-12 17:52:29 +02:00
parent f3ccf31e48
commit 1569e2807e
1 changed files with 2 additions and 2 deletions

View File

@ -723,10 +723,10 @@ namespace {
void GdsStream::_staticInit ()
{
_gdsLayerTable = vector<const Layer*>( 256, NULL );
_gdsLayerTable = vector<const Layer*>( 1024, NULL );
for ( const BasicLayer* layer : DataBase::getDB()->getTechnology()->getBasicLayers() ) {
uint16_t gdsNumber = layer->getGds2Layer();
if (gdsNumber < 256) _gdsLayerTable[gdsNumber] = layer;
if (gdsNumber < 1024) _gdsLayerTable[gdsNumber] = layer;
}
}