Fix GEDCOM export; don't include ADDR when address is missing

Fixes #11825
This commit is contained in:
prculley 2020-07-03 10:08:10 -05:00 committed by Paul Culley
parent 41f1e91600
commit 75aabf570d

View File

@ -1553,7 +1553,7 @@ class GedcomWriter(UpdateCallback):
@type addr: [a super-type of] LocationBase
"""
if addr.get_street() or addr.get_locality() or addr.get_city() or \
addr.get_state() or addr.get_postal_code or addr.get_country():
addr.get_state() or addr.get_postal_code() or addr.get_country():
self._writeln(level, 'ADDR', addr.get_street())
if addr.get_locality():
self._writeln(level + 1, 'CONT', addr.get_locality())