summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-03 07:58:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-03 08:09:45 -0700
commitf4f5536baddf8dc7dc8ed9e913eabbc904960f94 (patch)
treeb7004161e76882af329501cb03b0c723f4f51dbf
parentf6e8903a528a65f0e0fd050c203c95d57afd2db9 (diff)
downloadsubsurface-f4f5536baddf8dc7dc8ed9e913eabbc904960f94.tar.gz
Fix copy_tree_node to no longer overwrite dive duration
Cut and paste error when creating this function. Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--divelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c
index 64b392f54..1c5db5d9b 100644
--- a/divelist.c
+++ b/divelist.c
@@ -1223,7 +1223,7 @@ static int copy_tree_node(GtkTreeIter *a, GtkTreeIter *b)
DIVE_RATING, &store_dive.rating,
DIVE_DEPTH, &store_dive.maxdepth,
DIVE_DURATION, &store_dive.duration,
- DIVE_TEMPERATURE, &store_dive.duration,
+ DIVE_TEMPERATURE, &store_dive.watertemp.mkelvin,
DIVE_TOTALWEIGHT, &totalweight,
DIVE_SUIT, &store_dive.suit,
DIVE_CYLINDER, &cylinder_text,
@@ -1238,7 +1238,7 @@ static int copy_tree_node(GtkTreeIter *a, GtkTreeIter *b)
DIVE_RATING, store_dive.rating,
DIVE_DEPTH, store_dive.maxdepth,
DIVE_DURATION, store_dive.duration,
- DIVE_TEMPERATURE, store_dive.duration,
+ DIVE_TEMPERATURE, store_dive.watertemp.mkelvin,
DIVE_TOTALWEIGHT, totalweight,
DIVE_SUIT, store_dive.suit,
DIVE_CYLINDER, cylinder_text,