[PATCH 2/2] Avoid duplicate divesites on Liquivision import

Miika Turkia miika.turkia at gmail.com
Wed Aug 19 10:12:17 PDT 2015


Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 liquivision.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/liquivision.c b/liquivision.c
index 91e0277..add3772 100644
--- a/liquivision.c
+++ b/liquivision.c
@@ -149,7 +149,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int
 
 		/* Store the location only if we have one */
 		if (len || place_len) {
-			dive->dive_site_uuid = create_dive_site(location);
+			dive->dive_site_uuid = find_or_create_dive_site_with_name(location);
 			free(location);
 		}
 
-- 
2.1.4



More information about the subsurface mailing list