Modified the "flatten" command so that flattened labels use an

alternative separator "." instead of "/".  This prevents other
routines that expect "/" to indicate a true hierarchy from treating
the label as hierarchical instead of flat, which should be the
correct handling for a flattened cell.
This commit is contained in:
Tim Edwards 2022-09-08 18:05:44 -04:00
parent 1c20abad5b
commit 1178db42c6
1 changed files with 7 additions and 0 deletions

View File

@ -1917,6 +1917,13 @@ flatCopyAllLabels(scx, lab, tpath, targetUse)
n = tpath->tp_next;
f = tpath->tp_first;
c = *n;
/* Apply alternate path separator "." because we don't want */
/* the default "/" which will make the label be treated as */
/* an actual hierarchical name, such as when determining */
/* precedence of label names. */
if (tpath->tp_next != tpath->tp_first) *(n - 1) = '.';
strcpy(n, lab->lab_text);
DBPutFontLabel(def, &labTargetRect, lab->lab_font, lab->lab_size,
lab->lab_rotate, &lab->lab_offset, targetPos,