From c109b98f198eb3ea98190d720dfd3fc26c571b69 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 12 Feb 2015 19:02:06 -0800 Subject: Change one more spot in divelist.c from locations to dive sites Signed-off-by: Dirk Hohndel --- divelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/divelist.c b/divelist.c index a6f6332e1..d57188a68 100644 --- a/divelist.c +++ b/divelist.c @@ -713,7 +713,7 @@ void autogroup_dives(void) if (lastdive && dive->when < lastdive->when + TRIP_THRESHOLD) { dive_trip_t *trip = lastdive->divetrip; add_dive_to_trip(dive, trip); - if (dive->location && !trip->location) + if (get_dive_location(dive) && !trip->location) trip->location = copy_string(get_dive_location(dive)); lastdive = dive; continue; -- cgit v1.2.3-70-g09d2