aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-11 13:43:37 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-11 15:49:50 -0700
commitadd58148bc30060e99e9c896fa4d390460c55694 (patch)
tree1cf0f1dff1590c4fbd5fe4ebb6539920fe883bbd /main.c
parent0282d515db875cee0139e121db13084be0caac82 (diff)
downloadsubsurface-add58148bc30060e99e9c896fa4d390460c55694.tar.gz
Oops. Fix 'buffered dive' information
When fixing the unit changes, I broke the dive buffering logic entirely for switching between dives. Duh. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 138de29ec..360af8498 100644
--- a/main.c
+++ b/main.c
@@ -98,12 +98,12 @@ void update_dive(struct dive *new_dive)
if (old_dive) {
flush_dive_info_changes(old_dive);
flush_dive_equipment_changes(old_dive);
- buffered_dive = new_dive;
}
if (new_dive) {
show_dive_info(new_dive);
show_dive_equipment(new_dive);
}
+ buffered_dive = new_dive;
}
void repaint_dive(void)