Fixed another issue in which sticky labels on a non-electrical

type (like "comment") show up as nodes in the .ext file, which
they shouldn't.
This commit is contained in:
Tim Edwards 2023-09-22 16:03:53 -04:00
parent 4557dd1639
commit 7e5dbd17cd
1 changed files with 5 additions and 4 deletions

View File

@ -322,14 +322,15 @@ ExtLabelRegions(def, connTo, nodeList, clipArea)
}
}
/* This may be a "sticky label". If it is not connected to
* TT_SPACE, then create a new node region for it. The
* label must be within the clip area.
/* This may be a "sticky label". If it is not connected to a
* non-electrical type (includes TT_SPACE), then create a new node
* region for it. The label must be within the clip area.
*/
if ((ll == NULL) && (nodeList != NULL) &&
(GEO_SURROUND(&lab->lab_rect, clipArea) ||
GEO_TOUCH(&lab->lab_rect, clipArea))
&& (lab->lab_type != TT_SPACE))
&& (lab->lab_type != TT_SPACE)
&& TTMaskHasType(&ExtCurStyle->exts_activeTypes, lab->lab_type))
{
nclasses = ExtCurStyle->exts_numResistClasses;
n = sizeof (NodeRegion) + (sizeof (PerimArea) * (nclasses - 1));