From 1a052554bd6bb7eb4031b20c72cfd5385abc794f 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 --- src/GrampsParser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GrampsParser.py b/src/GrampsParser.py index 6d748f71a..d7097a2a1 100644 --- a/src/GrampsParser.py +++ b/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: