From e4354bd9d97499c750a4d38719a26fdabc9f6c21 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 28 Jun 2008 11:49:24 +0000 Subject: [PATCH] Make sure Gedcom ADDR token if location is populated. Bug #2216 svn: r10831 --- src/GrampsDbUtils/_WriteGedcom.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/GrampsDbUtils/_WriteGedcom.py b/src/GrampsDbUtils/_WriteGedcom.py index e7cae4916..fe18ae8ad 100644 --- a/src/GrampsDbUtils/_WriteGedcom.py +++ b/src/GrampsDbUtils/_WriteGedcom.py @@ -1427,9 +1427,8 @@ class GedcomWriter(BasicUtils.UpdateCallback): # be written out in the event detail. # http://homepages.rootsweb.com/~pmcbride/gedcom/55gcch2.htm#EVENT_DETAIL location = place.get_main_location() - if location: - if location.get_street(): - self.__writeln(level, "ADDR", location.get_street()) + if location and not location.is_empty(): + self.__writeln(level, "ADDR", location.get_street()) if location.get_city(): self.__writeln(level + 1, 'CITY', location.get_city()) if location.get_state():