Modified the cell clear routine so that it removes properties in

addition to subcells, paint, and labels.  Otherwise problems arise
if a cell is read from LEF followed by GDS;  the GDS view overwrites
the LEF but the property "LEFview" remains and causes problems when
writing GDS output subsequently.
This commit is contained in:
Tim Edwards 2019-06-05 16:48:45 -04:00
parent bbf6008363
commit 0cd45ae6f7
1 changed files with 6 additions and 1 deletions

View File

@ -157,7 +157,8 @@ dbCopyDefFunc(tile, def)
* DBCellClearDef --
*
* Empties out all tile planes of the indicated CellDef, making it
* as though the def had been newly allocated.
* as though the def had been newly allocated. This also removes all
* labels and all properties from the cell.
*
* Results:
* None.
@ -221,6 +222,10 @@ DBCellClearDef(cellDef)
freeMagic((char *) lab);
cellDef->cd_labels = (Label *) NULL;
cellDef->cd_lastLabel = (Label *) NULL;
/* Remove all defined properties */
DBPropClearAll(cellDef);
SigEnableInterrupts();
}