summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2015-07-27 00:30:16 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-26 09:14:06 -0700
commit4d3cefc70b11977391f0376f668f2670b7fc5095 (patch)
treee08e7f27b19b08987c21a5c6b2942b6c041bc65e /planner.c
parent90d15c20c4f1b0aef2508a74b29058ad21af9197 (diff)
downloadsubsurface-4d3cefc70b11977391f0376f668f2670b7fc5095.tar.gz
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>
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 b6ffa5744..2d2b3f716 100644
--- a/planner.c
+++ b/planner.c
@@ -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);