diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-17 18:38:46 -0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-17 18:38:46 -0200 |
commit | 160745c545c05f4b25a3c042aa770e8213b763a2 (patch) | |
tree | 2911001a5099cf550165d9477e598dacb6353292 /equipment.c | |
parent | c486a9ee81de77faba90b5aa0b2e63eb11ec47f8 (diff) | |
parent | 4cff1f5b90217365d13ab2e2d5ff09b35590aab3 (diff) | |
download | subsurface-160745c545c05f4b25a3c042aa770e8213b763a2.tar.gz |
Merge branch 'sacplot' of git://github.com/dirkhh/subsurface
* 'sacplot' of git://github.com/dirkhh/subsurface:
Color pressure plot according to current SAC rate
Fix minor coding standard issues introduced by my last commit
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/equipment.c b/equipment.c index dbe1f0f13..f86e63b20 100644 --- a/equipment.c +++ b/equipment.c @@ -419,8 +419,9 @@ static void record_cylinder_changes(cylinder_t *cyl, struct cylinder_widget *cyl if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cylinder->pressure_button))) { start = gtk_spin_button_get_value(GTK_SPIN_BUTTON(cylinder->start)); end = gtk_spin_button_get_value(GTK_SPIN_BUTTON(cylinder->end)); - } else + } else { start = end = 0; + } if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cylinder->gasmix_button))) o2 = gtk_spin_button_get_value(GTK_SPIN_BUTTON(cylinder->o2))*10 + 0.5; else |