summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-30 15:06:26 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-30 15:06:26 -0300
commit5e722a93e46ec1217bffd2bbcb1279cfd96dc2ed (patch)
tree13e21ee755155104cf5755ece2f3406fbfbb6f9a /planner.c
parent2d0e877bb281733c94ac7f6d614914d7820c3af1 (diff)
downloadsubsurface-5e722a93e46ec1217bffd2bbcb1279cfd96dc2ed.tar.gz
Gas choices working, both directions ( Planner and Table )
The gas choice now works and correctly ( I hope ) calculates the gas choosen to show on the planner. User can choose the gas from the list on the visual planner, and also on the table. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 56fc0ac46..7c77555ac 100644
--- a/planner.c
+++ b/planner.c
@@ -712,7 +712,6 @@ error_exit:
free(gaschanges);
}
-#if USE_GTK_UI
/*
* Get a value in tenths (so "10.2" == 102, "9" = 90)
*
@@ -980,6 +979,7 @@ int validate_volume(const char *text, int *sac)
return 1;
}
+#if USE_GTK_UI
struct diveplan diveplan = {};
char *cache_data = NULL;
struct dive *planned_dive = NULL;