From 196ad8feb7f1237a5624d32b68aeb3535e91b7e1 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 28 Aug 2013 11:52:48 +0000 Subject: [PATCH] 7020: Date filtering fails to work on Family Events in 3.4.6 or 4.0.2; typo, missing 'not'; changed date before and after max to be 9999 svn: r22917 --- gramps/gen/filters/rules/person/_hasfamilyevent.py | 2 +- gramps/gui/configure.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps/gen/filters/rules/person/_hasfamilyevent.py b/gramps/gen/filters/rules/person/_hasfamilyevent.py index 3131d8569..bb133a01a 100644 --- a/gramps/gen/filters/rules/person/_hasfamilyevent.py +++ b/gramps/gen/filters/rules/person/_hasfamilyevent.py @@ -83,7 +83,7 @@ class HasFamilyEvent(Rule): if not self.match_substring(3, event.get_description()): val = 0 if self.date: - if event.get_date_object().match(self.date): + if not event.get_date_object().match(self.date): val = 0 if self.list[2]: place_id = event.get_place_handle() diff --git a/gramps/gui/configure.py b/gramps/gui/configure.py index deb767234..2be05e6d8 100644 --- a/gramps/gui/configure.py +++ b/gramps/gui/configure.py @@ -1176,13 +1176,13 @@ class GrampsPreferences(ConfigureDialog): self.add_spinner(table, _('Date about range'), - 0, 'behavior.date-about-range', (1, 80)) + 0, 'behavior.date-about-range', (0, 9999)) self.add_spinner(table, _('Date after range'), - 1, 'behavior.date-after-range', (1, 80)) + 1, 'behavior.date-after-range', (0, 9999)) self.add_spinner(table, _('Date before range'), - 2, 'behavior.date-before-range', (1, 80)) + 2, 'behavior.date-before-range', (0, 9999)) self.add_spinner(table, _('Maximum age probably alive'), 3, 'behavior.max-age-prob-alive', (80, 140))