diff --git a/src/RelLib.py b/src/RelLib.py index a0c626bf1..02bb72fd2 100644 --- a/src/RelLib.py +++ b/src/RelLib.py @@ -2249,7 +2249,7 @@ class GrampsDB(Persistent): else: place = Place() map[idVal] = self.addPlace(place) - self.placeTable[map[idVal]] = p.getDisplayInfo() + self.placeTable[map[idVal]] = place.getDisplayInfo() return place def addPlaceNoMap(self,place,index): diff --git a/src/SourceView.py b/src/SourceView.py index 70fc6bcf4..bd2b4be8e 100644 --- a/src/SourceView.py +++ b/src/SourceView.py @@ -108,7 +108,7 @@ class SourceView: data = None if len(obj.selection) == 1: id = obj.get_row_data(obj.selection[0]) - data = self.db.getSourceMap()[data] + data = self.db.getSourceMap()[id] obj.freeze() if new_col == self.scol: