mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: Add parentheses to output condition
Aids reading the code, doesn't alter the logic. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
90d15c20c4
commit
4d3cefc70b
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
|||
if (plan_display_transitions || dp->entered || !dp->next ||
|
||||
(nextdp && dp->depth != nextdp->depth) ||
|
||||
(!isascent && gaschange_before && nextdp && dp->depth != nextdp->depth) ||
|
||||
gaschange_after && lastentered || gaschange_after && !isascent ||
|
||||
(gaschange_after && lastentered) || (gaschange_after && !isascent) ||
|
||||
(isascent && gaschange_after && nextdp && dp->depth != nextdp->depth )) {
|
||||
snprintf(temp, sizeof(temp), translate("gettextFromC", "%3.0f%s"), depthvalue, depth_unit);
|
||||
len += snprintf(buffer + len, sizeof(buffer) - len, "<tr><td style='padding-left: 10px; float: right;'>%s</td>", temp);
|
||||
|
|
Loading…
Add table
Reference in a new issue