Modified the routine that flattens labels so that it does not prepend

the name of the cell use if the cell use is a top level window.  It
was accidentally discovered that using "select top cell ; select flat"
will do this (creating label text with spaces in the process, which is
illegal syntax for netlists).
This commit is contained in:
Tim Edwards 2022-03-08 13:55:07 -05:00
parent 353ca3aff6
commit 083c0c10e9
2 changed files with 14 additions and 10 deletions

View File

@ -1 +1 @@
8.3.275
8.3.276

View File

@ -694,17 +694,21 @@ dbCellLabelSrFunc(scx, fp)
if (!DBCellRead(def, (char *) NULL, TRUE, dereference, NULL)) return 0;
}
if (fp->tf_tpath != (TerminalPath *) NULL)
/* Do not add a path name of a top level window */
if (strncmp(scx->scx_use->cu_id, "Topmost ", 8))
{
TerminalPath *tp = fp->tf_tpath;
tnext = tp->tp_next;
tp->tp_next = DBPrintUseId(scx, tp->tp_next, tp->tp_last-tp->tp_next,
FALSE);
if (tp->tp_next < tp->tp_last)
if (fp->tf_tpath != (TerminalPath *) NULL)
{
*(tp->tp_next++) = '/';
*(tp->tp_next) = '\0';
TerminalPath *tp = fp->tf_tpath;
tnext = tp->tp_next;
tp->tp_next = DBPrintUseId(scx, tp->tp_next, tp->tp_last-tp->tp_next,
FALSE);
if (tp->tp_next < tp->tp_last)
{
*(tp->tp_next++) = '/';
*(tp->tp_next) = '\0';
}
}
}