diff --git a/ChangeLog b/ChangeLog index f87f24f6c..017d7c7d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ * src/GrampsInMemDB.py: Do not commit objects with empty handles. * src/Utils.py (family_name): Add clause for unknown parents. + * src/EventEdit.py (get_place): Typo. + 2005-03-12 Martin Hawlisch * src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and reset(), that are called before/after a filter is applied, to properly diff --git a/src/EventEdit.py b/src/EventEdit.py index 904bca46a..b45eaf7c3 100644 --- a/src/EventEdit.py +++ b/src/EventEdit.py @@ -298,11 +298,8 @@ class EventEditor: def get_place(self,field): text = unicode(field.get_text()).strip() - if text: - if self.pmap.has_key(text): - return self.parent.db.get_event_from_handle(self.pmap[text]) - else: - return None + if text and self.pmap.has_key(text): + return self.parent.db.get_place_from_handle(self.pmap[text]) else: return None