Corrected an error when using the "instance" command with an instance

name.  The instance search routine was not rejecting internal cells,
and so would choose, e.g., a selection cell and reject it because it
was not the edit cell.
This commit is contained in:
Tim Edwards 2024-01-21 11:00:19 -05:00
parent 63109229f4
commit 5f6ba3be69
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
8.3.458
8.3.459

View File

@ -1307,7 +1307,7 @@ DBLockUse(UseName, bval)
while( (entry = HashNext(&dbCellDefTable, &hs)) != NULL)
{
celldef = (CellDef *) HashGetValue(entry);
if (celldef != (CellDef *) NULL)
if ((celldef != (CellDef *)NULL) && !(celldef->cd_flags & CDINTERNAL))
{
celluse = celldef->cd_parents; /* only need one */
if (celluse != (CellUse *)NULL) {
@ -1386,7 +1386,7 @@ DBOrientUse(UseName, dodef)
while( (entry = HashNext(&dbCellDefTable, &hs)) != NULL)
{
celldef = (CellDef *) HashGetValue(entry);
if (celldef != (CellDef *) NULL)
if ((celldef != (CellDef *)NULL) && !(celldef->cd_flags & CDINTERNAL))
{
celluse = celldef->cd_parents; /* only need one */
if (celluse != (CellUse *)NULL) {
@ -1549,7 +1549,7 @@ DBAbutmentUse(UseName, dolist)
while( (entry = HashNext(&dbCellDefTable, &hs)) != NULL)
{
celldef = (CellDef *) HashGetValue(entry);
if (celldef != (CellDef *) NULL)
if ((celldef != (CellDef *)NULL) && !(celldef->cd_flags & CDINTERNAL))
{
celluse = celldef->cd_parents; /* only need one */
if (celluse != (CellUse *)NULL) {
@ -2519,7 +2519,7 @@ DBUnLinkCell(use, parentDef)
* Side effects:
* Fills in *pydef with a newly created CellDef by that name, and
* *pyuse with a newly created CellUse pointing to the new def.
* The CellDef pointed to by *pydef has the CD_INTERNAL flag
* The CellDef pointed to by *pydef has the CDINTERNAL flag
* set, and is marked as being available.
*
* ----------------------------------------------------------------------------