Corrected a problem in which "cellname delete" never cleared the

cell name from the cell name hash table.  So when "cellname rename"
was changed recently to prevent changing the name of a cell that
already exists, the suggested recipe for R-C extraction no longer
works:  "load x; flatten y; load y; cellname delete x; cellname
rename y x".  Solved by adding a HashRemove() function to the
cell deletion routine.  Thanks to Egor Lukyachenko for reporting
the issue (Github issue tracker #467).
This commit is contained in:
R. Timothy Edwards 2025-10-20 11:03:03 -04:00
parent 6b8f5d1d67
commit b668b02a1f
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
8.3.564
8.3.565

View File

@ -1944,6 +1944,7 @@ DBCellDeleteDef(cellDef)
entry = HashFind(&dbCellDefTable, cellDef->cd_name);
ASSERT(HashGetValue(entry) == (ClientData) cellDef, "DBCellDeleteDef");
HashSetValue(entry, (ClientData) NULL);
HashRemove(&dbCellDefTable, cellDef->cd_name);
if (cellDef->cd_props)
DBPropClearAll(cellDef);