aboutsummaryrefslogtreecommitdiffstats
path: root/core/plannernotes.c
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2017-12-01 09:06:46 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-01 15:47:51 -0800
commit1985bcb29ecb80e7b06a664e4a29f2b9d0395737 (patch)
treef954816a8ecb349eacc0ea2e977bd70fa85b57cc /core/plannernotes.c
parent41b4e4a19a48dbb97321006cdcbf075fde7d81df (diff)
downloadsubsurface-1985bcb29ecb80e7b06a664e4a29f2b9d0395737.tar.gz
Disable plan variation in recreational mode
Calculating variations when in recreational mode doesn't make sense, and can prevent variations from being calculated when switching back to Buhlmann or VPM-B modes. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Diffstat (limited to 'core/plannernotes.c')
-rw-r--r--core/plannernotes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c
index d4b335888..534061a87 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -110,7 +110,7 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
get_current_date());
}
- if (prefs.display_variations)
+ if (prefs.display_variations && decoMode() != RECREATIONAL)
len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin %s"),
diveplan_duration(diveplan), "VARIATIONS<br></div>");
else