* src/GrampsDb/_ReadGedcom.py (parse_source_eference): Cap confidence value.

svn: r7433
This commit is contained in:
Alex Roitman 2006-10-24 19:22:47 +00:00
parent 71c928ca73
commit 80527732df
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-10-24 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py (parse_source_eference): Cap
confidence value.
2006-10-23 Alex Roitman <shura@gramps-project.org> 2006-10-23 Alex Roitman <shura@gramps-project.org>
* configure.in: Bump up release number. * configure.in: Bump up release number.
* NEWS: Typo. * NEWS: Typo.

View File

@ -2116,6 +2116,8 @@ class GedcomParser(UpdateCallback):
val = int(matches[2]) val = int(matches[2])
except ValueError: except ValueError:
return return
# If value is greater than 3, cap at 3
val = min(val,3)
if val > 1: if val > 1:
source.set_confidence_level(val+1) source.set_confidence_level(val+1)
else: else: