mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Limit the scope of gasidx in add_plan_to_notes
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
94e66dbdd6
commit
86d66d3c9d
1 changed files with 2 additions and 2 deletions
|
@ -518,7 +518,7 @@ static unsigned int *sort_stops(int *dstops, int dnr, struct gaschanges *gstops,
|
|||
static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_disclaimer)
|
||||
{
|
||||
char buffer[20000], temp[1000];
|
||||
int len, gasidx, lastdepth = 0, lasttime = 0;
|
||||
int len, lastdepth = 0, lasttime = 0;
|
||||
struct divedatapoint *dp = diveplan->dp;
|
||||
bool gaschange = !plan_verbatim;
|
||||
struct divedatapoint *nextdp = NULL;
|
||||
|
@ -637,7 +637,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
|||
|
||||
snprintf(temp, sizeof(temp), "%s", translate("gettextFromC", "Gas consumption:"));
|
||||
len += snprintf(buffer + len, sizeof(buffer) - len, "</tbody></table></div><div><br>%s<br>", temp);
|
||||
for (gasidx = 0; gasidx < MAX_CYLINDERS; gasidx++) {
|
||||
for (int gasidx = 0; gasidx < MAX_CYLINDERS; gasidx++) {
|
||||
double volume, pressure, deco_volume, deco_pressure;
|
||||
const char *unit, *pressure_unit;
|
||||
char warning[1000] = "";
|
||||
|
|
Loading…
Add table
Reference in a new issue