fix #1439 failed to skip subordinates under NOTE

svn: r9501
This commit is contained in:
James G Sack 2007-12-14 08:54:40 +00:00
parent cc81822eb0
commit 91824d8f2f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-13 Jim Sack <jgsack@san.rr.com>
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 <jgsack@san.rr.com>
src/test/gedread_util.py : added to support testing
src/test/test/gedread_util_test.py : added to test util above

View File

@ -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"""