Fix problem with duplicate places on import
svn: r16083
This commit is contained in:
parent
9c14d3b487
commit
862f66f77d
@ -4356,18 +4356,11 @@ 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)
|
||||
|
||||
map(place.add_note, note_list)
|
||||
|
Loading…
Reference in New Issue
Block a user