summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-08 12:14:27 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-12-08 12:14:27 -0800
commit95cc317b087e863f6e0a4ab4db7ab68f06a9d969 (patch)
tree34662270cb6698acaa33a966c25f932de18e3320 /save-xml.c
parent1cb9fc7fb4cfc919cc7880d0af3a66a2f7f107cf (diff)
parent52748412fff0974fbc76b3f0a72cd0ba58b37771 (diff)
downloadsubsurface-95cc317b087e863f6e0a4ab4db7ab68f06a9d969.tar.gz
Merge branch 'stars' of git://git.hohndel.org/subsurface
* 'stars' of git://git.hohndel.org/subsurface: Fix some issues with star rating code Add typical 0 to 5 star rating for dives Still not great editing, but other than that it looks good.
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c
index d6c249730..c9085db51 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -262,6 +262,8 @@ static void save_dive(FILE *f, struct dive *dive)
fputs("<dive", f);
if (dive->number)
fprintf(f, " number='%d'", dive->number);
+ if (dive->rating)
+ fprintf(f, " rating='%d'", dive->rating);
fprintf(f, " date='%04u-%02u-%02u'",
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday);
fprintf(f, " time='%02u:%02u:%02u'",