Fix managment of layer 0 as bounding box in GdsParser.

* Bug: In GdsParser::readStructure(), the Gds::Layer_0_IsBoundary flag
    was not taken into account. The abutment box was always forced to
    the bounding box, resulting in incorrect cell size (and placement).
This commit is contained in:
Jean-Paul Chaput 2023-09-08 22:01:33 +02:00
parent 53f50ee8ca
commit 11618cc647
1 changed files with 5 additions and 3 deletions

View File

@ -963,9 +963,11 @@ namespace {
if (_validSyntax) _stream >> _record; if (_validSyntax) _stream >> _record;
UpdateSession::close(); if (not useLayer0AsBoundary()) {
_cell->setAbutmentBox( _cell->getBoundingBox() ); UpdateSession::close();
UpdateSession::open(); _cell->setAbutmentBox( _cell->getBoundingBox() );
UpdateSession::open();
}
_cell = NULL; _cell = NULL;
cdebug_log(101,-1) << " GdsStream::readStructure() - return:" << _validSyntax << endl; cdebug_log(101,-1) << " GdsStream::readStructure() - return:" << _validSyntax << endl;