1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 20:14:04 +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);
for (sheet = ctx->new_hist->sheets; sheet; sheet = sheet->next) {
n++;
if (sheet == curr_sheet)
continue;
for (obj = sheet->sch->objs; obj; obj = obj->next) {
if (sheet == curr_sheet)
continue;
if (obj->type != sch_obj_glabel)
continue;
if (strcmp(obj->u.text.s, aoi_ctx->obj->u.text.s))