mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected an error in lefWrite where a variable was not set,
causing occasional intermittent crashes on "lef write".
This commit is contained in:
+8
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user