Change one more spot in divelist.c from locations to dive sites

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-12 19:02:06 -08:00
parent b7e53aaee6
commit c109b98f19

View file

@ -713,7 +713,7 @@ void autogroup_dives(void)
if (lastdive && dive->when < lastdive->when + TRIP_THRESHOLD) { if (lastdive && dive->when < lastdive->when + TRIP_THRESHOLD) {
dive_trip_t *trip = lastdive->divetrip; dive_trip_t *trip = lastdive->divetrip;
add_dive_to_trip(dive, trip); 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)); trip->location = copy_string(get_dive_location(dive));
lastdive = dive; lastdive = dive;
continue; continue;