mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Correctly suppress display of ICD table if prefs.show_icd is false
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
b5b5d619be
commit
d9c0df0142
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For trimix OC dives, if an icd table header and icd data were printed to buffer, then add the ICD table here */
|
/* For trimix OC dives, if an icd table header and icd data were printed to buffer, then add the ICD table here */
|
||||||
if (!icdtableheader) {
|
if (!icdtableheader && prefs.show_icd) {
|
||||||
icdlen += snprintf(icdbuffer + icdlen, sz_icdbuf - icdlen,"</tbody></table>"); // End the ICD table
|
icdlen += snprintf(icdbuffer + icdlen, sz_icdbuf - icdlen,"</tbody></table>"); // End the ICD table
|
||||||
len += snprintf(buffer + len, sz_buffer - len, "%s", icdbuffer); // ..and add it to the html buffer
|
len += snprintf(buffer + len, sz_buffer - len, "%s", icdbuffer); // ..and add it to the html buffer
|
||||||
if (icdwarning) { // If necessary, add warning
|
if (icdwarning) { // If necessary, add warning
|
||||||
|
|
Loading…
Reference in a new issue