summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 4d5e05aa4..f5d287bfd 100644
--- a/profile.c
+++ b/profile.c
@@ -157,7 +157,7 @@ static int get_local_sac(struct plot_data *entry1, struct plot_data *entry2, str
return 0;
a.mbar = GET_PRESSURE(entry1);
b.mbar = GET_PRESSURE(entry2);
- if (!a.mbar || !b.mbar)
+ if (!b.mbar || a.mbar <= b.mbar)
return 0;
/* Mean pressure in ATM */