0004412: Entering a witness to an event such as marriage

In some circumstances (after a Father's age of Mother's age) a witness
could be ignored.
This commit is contained in:
kulath 2015-04-01 14:50:37 +01:00
parent b5610e9d5f
commit 5af7335e54

View File

@ -5743,7 +5743,7 @@ class GedcomParser(UpdateCallback):
""" """
while True: while True:
line = self.__get_next_line() line = self.__get_next_line()
if self.__level_is_finished(line, state.level): if self.__level_is_finished(line, state.level+1):
break break
elif line.token == TOKEN_AGE: elif line.token == TOKEN_AGE:
attr = Attribute() attr = Attribute()
@ -5764,7 +5764,7 @@ class GedcomParser(UpdateCallback):
""" """
while True: while True:
line = self.__get_next_line() line = self.__get_next_line()
if self.__level_is_finished(line, state.level): if self.__level_is_finished(line, state.level+1):
break break
elif line.token == TOKEN_AGE: elif line.token == TOKEN_AGE:
attr = Attribute() attr = Attribute()