mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 06:54:03 +02:00
eeshow/gui.c (hover_glabel): don't test outer loop variable in inner loop
This commit is contained in:
parent
562f36b20c
commit
375efa6476
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user