summaryrefslogtreecommitdiffstats
path: root/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h
index 067ec386a..bfd47f0fe 100644
--- a/helpers.h
+++ b/helpers.h
@@ -35,6 +35,8 @@ QString get_trip_date_string(timestamp_t when, int nr);
extern DiveComputerList dcList;
+#define M_OR_FT(_m,_f) ((prefs.units.length == units::METERS) ? ((_m) * 1000) : (feet_to_mm(_f)))
+
#if defined __APPLE__
#define TITLE_OR_TEXT(_t,_m) "", _t + "\n" + _m
#else