1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 14:04:39 +02:00

eeshow/gui.c (hover_glabel): don't test outer loop variable in inner loop

This commit is contained in:
Werner Almesberger 2016-08-15 04:34:02 -03:00
parent 562f36b20c
commit 375efa6476

View File

@ -1023,9 +1023,9 @@ static bool hover_glabel(void *user, bool on)
overlay_remove_all(&ctx->pop_overlays); overlay_remove_all(&ctx->pop_overlays);
for (sheet = ctx->new_hist->sheets; sheet; sheet = sheet->next) { for (sheet = ctx->new_hist->sheets; sheet; sheet = sheet->next) {
n++; n++;
if (sheet == curr_sheet)
continue;
for (obj = sheet->sch->objs; obj; obj = obj->next) { for (obj = sheet->sch->objs; obj; obj = obj->next) {
if (sheet == curr_sheet)
continue;
if (obj->type != sch_obj_glabel) if (obj->type != sch_obj_glabel)
continue; continue;
if (strcmp(obj->u.text.s, aoi_ctx->obj->u.text.s)) if (strcmp(obj->u.text.s, aoi_ctx->obj->u.text.s))