From a3b78072337f4070b3770185c44ddca073e71929 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 8 Jul 2013 21:52:38 +0000 Subject: [PATCH] ignore bad Record Gramplet/Report data (the data-verification tool catches them) svn: r22663 --- gramps/plugins/lib/librecords.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/plugins/lib/librecords.py b/gramps/plugins/lib/librecords.py index 7a8613862..e87bdba7b 100644 --- a/gramps/plugins/lib/librecords.py +++ b/gramps/plugins/lib/librecords.py @@ -315,6 +315,9 @@ def find_records(db, filter, top_size, callname, def _record(lowest, highest, value, text, handle_type, handle, top_size): + if value < 0: # ignore erroneous data + return # (since the data-verification tool already finds it) + if isinstance(value, Span): low_value = value.minmax[0] high_value = value.minmax[1]