summaryrefslogtreecommitdiffstats
path: root/parse-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 /parse-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 'parse-xml.c')
-rw-r--r--parse-xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index b8f679324..82b10a47e 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1024,7 +1024,8 @@ static void try_to_fill_dive(struct dive **divep, const char *name, char *buf)
return;
if (MATCH(".buddy", utf8_string, &dive->buddy))
return;
-
+ if (MATCH(".rating", get_index, &dive->rating))
+ return;
if (MATCH(".cylinder.size", cylindersize, &dive->cylinder[cylinder_index].type.size))
return;
if (MATCH(".cylinder.workpressure", pressure, &dive->cylinder[cylinder_index].type.workingpressure))