diff --git a/calma/CalmaRdpt.c b/calma/CalmaRdpt.c index 403192f6..40a9e118 100644 --- a/calma/CalmaRdpt.c +++ b/calma/CalmaRdpt.c @@ -987,7 +987,7 @@ calmaElementText() { idx = sl->lab_flags & PORT_NUM_MASK; if (idx > i) i = idx; - if (!strcmp(sl->lab_text, textbody)) + if ((sl != lab) && !strcmp(sl->lab_text, textbody)) { i = (sl->lab_flags & PORT_NUM_MASK) - 1; break;