From 91824d8f2f1f549e5c1f3382403bbf3c21b400eb Mon Sep 17 00:00:00 2001 From: James G Sack Date: Fri, 14 Dec 2007 08:54:40 +0000 Subject: [PATCH] fix #1439 failed to skip subordinates under NOTE svn: r9501 --- ChangeLog | 5 +++++ src/GrampsDbUtils/_GedcomParse.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dbfca4c1d..c32e0f465 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-13 Jim Sack + src/GrampsDbUtils/_GedcomParse.py : #1439: avoid WARN message + fix subordinates under NOTE causing log WARN message + note: unittest src/GrampsDbUtils/test/GR_test.py verifies + 2007-12-13 Jim Sack src/test/gedread_util.py : added to support testing src/test/test/gedread_util_test.py : added to test util above diff --git a/src/GrampsDbUtils/_GedcomParse.py b/src/GrampsDbUtils/_GedcomParse.py index 904dbc4a4..a9205bcb3 100644 --- a/src/GrampsDbUtils/_GedcomParse.py +++ b/src/GrampsDbUtils/_GedcomParse.py @@ -4189,7 +4189,7 @@ class GedcomParser(UpdateCallback): new_note.set_gramps_id(gid) self.dbase.add_note(new_note, self.trans) self.nid2id[new_note.gramps_id] = new_note.handle - self.__skip_subordinate_levels(level+1) + self.__skip_subordinate_levels(level) def __parse_source_reference(self, src_ref, level, handle): """Reads the data associated with a SOUR reference"""