5054: ID format conversion creates duplicates

svn: r17884
This commit is contained in:
Michiel Nauta
2011-07-01 11:22:37 +00:00
parent 838d7845e1
commit cb3d1f8ce5
2 changed files with 8 additions and 5 deletions

View File

@@ -199,7 +199,10 @@ class ReorderIds(tool.BatchTool):
newgramps_id = prefix % int(index)
if newgramps_id == gramps_id:
newids[newgramps_id] = gramps_id
if newgramps_id in newids:
dups.append(obj.get_handle())
else:
newids[newgramps_id] = gramps_id
elif find_from_id(newgramps_id) is not None:
dups.append(obj.get_handle())
else: