summaryrefslogtreecommitdiff
path: root/gui/glabel.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-19 05:09:00 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-19 05:09:00 -0300
commit8349ddc329c6779fcca7b3207dd0005d85bc0109 (patch)
treecb1e1aa7e165bb84d48871184bcec15fbe720cac /gui/glabel.c
parentddbd8702965e4ce86db71d63e4db8a8b16b2a2ed (diff)
downloadeeshow-8349ddc329c6779fcca7b3207dd0005d85bc0109.tar.gz
eeshow-8349ddc329c6779fcca7b3207dd0005d85bc0109.tar.bz2
eeshow-8349ddc329c6779fcca7b3207dd0005d85bc0109.zip
eeshow/gui/glabel.c (add_dest_overlay): show "(unnamed)", not "(null)"
... for unnamed sheet.
Diffstat (limited to 'gui/glabel.c')
-rw-r--r--gui/glabel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/glabel.c b/gui/glabel.c
index ccb76f6..abd3e2a 100644
--- a/gui/glabel.c
+++ b/gui/glabel.c
@@ -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;
}