diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index fec7cd57e..63dc269c3 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -5830,7 +5830,7 @@ class GedcomParser(UpdateCallback): """ while True: line = self.__get_next_line() - if self.__level_is_finished(line, state.level): + if self.__level_is_finished(line, state.level+1): break elif line.token == TOKEN_AGE: attr = Attribute() @@ -5851,7 +5851,7 @@ class GedcomParser(UpdateCallback): """ while True: line = self.__get_next_line() - if self.__level_is_finished(line, state.level): + if self.__level_is_finished(line, state.level+1): break elif line.token == TOKEN_AGE: attr = Attribute()