From 5af7335e54bf3d584b4f61992aa442c1341763e9 Mon Sep 17 00:00:00 2001 From: kulath Date: Wed, 1 Apr 2015 14:50:37 +0100 Subject: [PATCH] 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. --- gramps/plugins/lib/libgedcom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 11e5d0a32..21c3932e9 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -5743,7 +5743,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() @@ -5764,7 +5764,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()