From 813f7cb425ce5df2663f90790fde55546c8727a2 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 24 Feb 2002 21:43:07 +0000 Subject: [PATCH] Assign a title to a place that does not have a title. svn: r798 --- gramps/src/GrampsParser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/src/GrampsParser.py b/gramps/src/GrampsParser.py index 6d748f71a..d7097a2a1 100644 --- a/gramps/src/GrampsParser.py +++ b/gramps/src/GrampsParser.py @@ -151,7 +151,10 @@ class GrampsParser: def start_placeobj(self,attrs): self.placeobj = self.db.findPlaceNoMap(u2l(attrs['id'])) - self.placeobj.set_title(u2l(attrs['title'])) + title = u2l(attrs['title']) + if title == "": + title = u2l(attrs['id']) + self.placeobj.set_title(title) self.locations = 0 if self.num_places > 0: if self.callback != None and self.count % self.increment == 0: