1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 08:15:31 +02:00

eeshow/gui/glabel.c (add_dest_overlay): show "(unnamed)", not "(null)"

... for unnamed sheet.
This commit is contained in:
Werner Almesberger 2016-08-19 05:09:00 -03:00
parent 040a5af28f
commit 85a47724d7

View File

@ -123,7 +123,8 @@ static void add_dest_overlay(struct gui_ctx *ctx, const char *label,
continue;
over = overlay_add(&ctx->pop_overlays,
&ctx->aois, NULL, glabel_dest_click, sheet);
overlay_text(over, "%d %s", n, sheet->sch->title);
overlay_text(over, "%d %s", n,
sheet->sch->title ? sheet->sch->title : "(unnamed)");
overlay_style(over, &style);
break;
}