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:
parent
f8b6bd1525
commit
33edee6b42
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue