From 862f66f77dc6212fecbd6b592dd9e449dd562fd8 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 29 Oct 2010 23:21:08 +0000 Subject: [PATCH] Fix problem with duplicate places on import svn: r16083 --- src/plugins/lib/libgedcom.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index a72040bee..c994939bf 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -4356,19 +4356,12 @@ class GedcomParser(UpdateCallback): place_handle = state.event.get_place_handle() if place_handle: place = self.dbase.get_place_from_handle(place_handle) - index = place.get_title() + location.get_street() - - old_title = place.get_title() - place = self.__find_or_create_place(index) - if place.get_title(): - place.set_title(old_title) - place_handle = place.handle - place.set_main_location(location) else: place = self.__find_or_create_place(line.data) place.set_title(line.data) place_handle = place.handle - place.set_main_location(location) + + place.set_main_location(location) map(place.add_note, note_list)