Modified the condition under which the (UNNAMED) file is deleted

on loading a layout to avoid doing so with in a suspendall ...
resumeall block.  That avoids weird errors occurring when the
PDK toolkit scripts are run to generate a new device layout if
the top level layout is still (UNNAMED) and empty.
This commit is contained in:
Tim Edwards 2021-05-19 17:21:59 -04:00
parent f8b6bd1525
commit 33edee6b42
2 changed files with 8 additions and 2 deletions

View File

@ -1 +1 @@
8.3.163
8.3.164

View File

@ -549,8 +549,14 @@ DBWloadWindow(window, name, flags)
/* If the cell before loading was (UNNAMED) and it was */
/* never modified, then delete it now. */
/* Caveat: The (UNNAMED) cell could be on a push stack; */
/* that is not fatal but should be avoided. Since the most */
/* common use is from the toolkit scripts, then make sure */
/* this doesn't happen within suspendall ... resumeall. */
if (deleteDef != NULL)
DBCellDelete(deleteDef->cd_name, TRUE);
if (GrDisplayStatus != DISPLAY_SUSPEND)
DBCellDelete(deleteDef->cd_name, TRUE);
}
/* This function is called for each cell whose expansion status changed.