summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-11 11:36:33 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-11 15:49:17 -0700
commit1cc62d581158d52252f2ad7ef076811129510141 (patch)
treec549323d6d24783ae8f3ba4f7cd7fc3b868a24db /info.c
parent9580109406f79698b570e917c21b8844f9de34b5 (diff)
downloadsubsurface-1cc62d581158d52252f2ad7ef076811129510141.tar.gz
Fix up dive number naming
Use "dive->number" instead of "dive->nr". And make the XML match too. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/info.c b/info.c
index 32b830dd8..b65a82081 100644
--- a/info.c
+++ b/info.c
@@ -118,8 +118,8 @@ void show_dive_info(struct dive *dive)
gtk_entry_set_text(location, text);
len = 0;
- if (dive->nr)
- len = snprintf(buffer, sizeof(buffer), "%d. ", dive->nr);
+ if (dive->number)
+ len = snprintf(buffer, sizeof(buffer), "%d. ", dive->number);
snprintf(buffer+len, sizeof(buffer)-len, "%s", text);
gtk_label_set_text(GTK_LABEL(locationnote), buffer);