From 3246bf77d3fabafba30f5ab5da6d9d0ae3dc77ca Mon Sep 17 00:00:00 2001 From: kulath Date: Wed, 1 Apr 2015 14:48:41 +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. --- src/plugins/lib/libgedcom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 139a3bbca..4d5526108 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -5646,7 +5646,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 = gen.lib.Attribute() @@ -5667,7 +5667,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 = gen.lib.Attribute()