From 7e5dbd17cd4049e5c7032bcfc1bf5952cf346702 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 22 Sep 2023 16:03:53 -0400 Subject: [PATCH] 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. --- extract/ExtRegion.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/extract/ExtRegion.c b/extract/ExtRegion.c index 47c1447c..e7f6c531 100644 --- a/extract/ExtRegion.c +++ b/extract/ExtRegion.c @@ -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));