Aids reading the code, doesn't alter the logic.

Signed-off-by: Rick Walsh <[email protected]>
---
 planner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/planner.c b/planner.c
index b6ffa57..2d2b3f7 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);
-- 
2.4.3

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to