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:
parent
353ca3aff6
commit
083c0c10e9
|
|
@ -694,17 +694,21 @@ dbCellLabelSrFunc(scx, fp)
|
||||||
if (!DBCellRead(def, (char *) NULL, TRUE, dereference, NULL)) return 0;
|
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;
|
if (fp->tf_tpath != (TerminalPath *) NULL)
|
||||||
|
|
||||||
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++) = '/';
|
TerminalPath *tp = fp->tf_tpath;
|
||||||
*(tp->tp_next) = '\0';
|
|
||||||
|
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';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue