diff options
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |