From 1c686274be778e024954576193130eb63d8c10e4 Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 2 Sep 2016 09:45:00 -0500 Subject: [PATCH] This fix makes Place GID vs place name consistent across runs for Gedcom import --- gramps/plugins/lib/libplaceimport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libplaceimport.py b/gramps/plugins/lib/libplaceimport.py index f27720609..3383104e7 100644 --- a/gramps/plugins/lib/libplaceimport.py +++ b/gramps/plugins/lib/libplaceimport.py @@ -21,6 +21,7 @@ """ Helper class for importing places. """ +from _collections import OrderedDict #------------------------------------------------------------------------- # @@ -41,7 +42,7 @@ class PlaceImport: def __init__(self, db): self.db = db self.loc2handle = {} - self.handle2loc = {} + self.handle2loc = OrderedDict() def store_location(self, location, handle): """