From f70b24d0e9178c0d91db78255998ac637fd289e1 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 24 Oct 2006 19:30:24 +0000 Subject: [PATCH] * src/GrampsDb/_WriteGedcom.py (write_source_ref): Cap confidence. svn: r7434 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsDb/_WriteGedcom.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ce909eb1a..bec6c952d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,6 +1,7 @@ 2006-10-24 Alex Roitman * src/GrampsDb/_ReadGedcom.py (parse_source_eference): Cap confidence value. + * src/GrampsDb/_WriteGedcom.py (write_source_ref): Cap confidence. 2006-10-23 Alex Roitman * configure.in: Bump up release number. diff --git a/gramps2/src/GrampsDb/_WriteGedcom.py b/gramps2/src/GrampsDb/_WriteGedcom.py index 31cf9cb1e..b8b1cafaa 100644 --- a/gramps2/src/GrampsDb/_WriteGedcom.py +++ b/gramps2/src/GrampsDb/_WriteGedcom.py @@ -1389,6 +1389,8 @@ class GedcomWriter(UpdateCallback): self.cnvtxt(ref.get_page())) conf = ref.get_confidence_level() + # Cap the maximum level + conf = min(conf,RelLib.SourceRef.CONF_VERY_HIGH) if conf != RelLib.SourceRef.CONF_NORMAL: self.write_long_text("QUAY",level+1, str(quay_map[conf]))