6777: Crash on export to GEDCOM when there are addresses

svn: r22424
This commit is contained in:
Benny Malengier 2013-05-26 19:31:44 +00:00
parent 9e38800c97
commit fe318d77c3

View File

@ -663,8 +663,8 @@ class GedcomWriter(UpdateCallback):
""" """
for addr in person.get_address_list(): for addr in person.get_address_list():
self._writeln(1, 'RESI') self._writeln(1, 'RESI')
self.__date(2, addr.get_date_object()) self._date(2, addr.get_date_object())
self._write_addr(2, addr) self.__write_addr(2, addr)
if addr.get_phone(): if addr.get_phone():
self._writeln(2, 'PHON', addr.get_phone()) self._writeln(2, 'PHON', addr.get_phone())