aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-26 13:47:54 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-26 16:46:21 -0800
commite726c9d65c7d1f1b8dbe238819b4d2847b8a058d (patch)
tree4bfd79efd17829879abff84d9b1b05cbb1e3e1a1 /profile.c
parent1bd6f72d3191fc8f68acc9b44099e5705293db59 (diff)
downloadsubsurface-e726c9d65c7d1f1b8dbe238819b4d2847b8a058d.tar.gz
Add settings section to XML file format and store dive computer IDs
We only store the model/deviceid/nickname for those dive computers that are mentioned in the XML file. This should make the XML files nicely selfcontained. This also changes the code to consistently use model & deviceid to identify a dive computer. The deviceid is NOT guaranteed to be collision free between different libdivecomputer backends... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 566b64fc0..525843969 100644
--- a/profile.c
+++ b/profile.c
@@ -1879,7 +1879,7 @@ 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 */
- nickname = get_dc_nickname(dc->deviceid);
+ nickname = get_dc_nickname(dc->model, dc->deviceid);
if (!nickname || *nickname == '\0')
nickname = dc->model;
if (nickname) {