Corrected an error in lefWrite where a variable was not set,

causing occasional intermittent crashes on "lef write".
This commit is contained in:
Tim Edwards 2017-10-05 22:08:24 -04:00
parent 97488ee0f8
commit 909c3a8c6a
1 changed files with 8 additions and 1 deletions

View File

@ -315,10 +315,17 @@ lefEraseGeometry(tile, cdata)
lefClient *lefdata = (lefClient *)cdata;
CellDef *flatDef = lefdata->lefFlat;
Rect area;
TileType ttype;
TileType ttype, otype;
TiToRect(tile, &area);
otype = TiGetTypeExact(tile);
if (IsSplit(tile))
ttype = (otype & TT_SIDE) ? SplitRightType(tile) :
SplitLeftType(tile);
else
ttype = otype;
/* Erase the tile area out of lefFlat */
DBErase(flatDef, &area, ttype);