From 656b4da5abcda88eedcd86e90895c458de7035a2 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 28 Jun 2008 11:50:41 +0000 Subject: [PATCH] Make sure Gedcom ADDR token if location is populated. Bug #2216 svn: r10832 --- 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 2d18b2a31..a80becf6f 100644 --- a/src/GrampsDbUtils/_WriteGedcom.py +++ b/src/GrampsDbUtils/_WriteGedcom.py @@ -1428,9 +1428,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():