From a2dbc495df47c14b1ef3a9fe11eed0b0e45bb6ea Mon Sep 17 00:00:00 2001 From: Enno Borgsteede Date: Mon, 24 Aug 2015 08:47:08 +1000 Subject: [PATCH] 7595 Custom filters for note text repaired --- gramps/gen/filters/rules/note/_matchesregexpof.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gramps/gen/filters/rules/note/_matchesregexpof.py b/gramps/gen/filters/rules/note/_matchesregexpof.py index 007eb88f1..00ed77b2a 100644 --- a/gramps/gen/filters/rules/note/_matchesregexpof.py +++ b/gramps/gen/filters/rules/note/_matchesregexpof.py @@ -49,7 +49,6 @@ class MatchesRegexpOf(Rule): def apply(self, db, note): """ Apply the filter """ - text = note.get() - if self.match_substring(0, text) is not None: + if self.match_substring(0, note.get()): return True return False