summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-13 15:51:34 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-13 15:51:34 -0200
commit4891fa812f04da1f46075433d28fa0f33145e125 (patch)
tree35beeea94d6749c033cac2287e5e9c62834539c5 /equipment.c
parentede70c03b0cff83f1d740204127fe594b8c378ec (diff)
downloadsubsurface-4891fa812f04da1f46075433d28fa0f33145e125.tar.gz
Fix minor coding standard issues introduced by my last commit
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c3
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