aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index c8571b8d5..984c5e2c9 100644
--- a/profile.c
+++ b/profile.c
@@ -1857,9 +1857,10 @@ void plot(struct graphics_context *gc, struct dive *dive, scale_mode_t scale)
cairo_stroke(gc->cr);
/* Put the dive computer name in the lower left corner */
- if (dc->model) {
+ if (dc->nickname || dc->model) {
static const text_render_options_t computer = {10, TIME_TEXT, LEFT, MIDDLE};
- plot_text(gc, &computer, 0, 1, "%s", dc->model);
+ plot_text(gc, &computer, 0, 1, "%s",
+ dc->nickname && *dc->nickname ? dc->nickname : dc->model);
}
if (PP_GRAPHS_ENABLED) {