From d10cd40ae7bf8fae3f630441dba348be720d4c49 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 13 Oct 2010 10:56:46 +0000 Subject: [PATCH] 4236: All notes and sources ALWAYS written to GEDCOM file even when no notes are suppose to be written svn: r15978 --- src/Filters/_GenericFilter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Filters/_GenericFilter.py b/src/Filters/_GenericFilter.py index 9acf81baa..03304d1c3 100644 --- a/src/Filters/_GenericFilter.py +++ b/src/Filters/_GenericFilter.py @@ -61,8 +61,10 @@ class GenericFilter(object): return False def is_empty(self): - return len(self.flist) == 0 or \ - (len(self.flist) == 1 and self.flist[0].is_empty()) + return (len(self.flist) == 0 or + (len(self.flist) == 1 and + ((self.flist[0].is_empty() and not self.invert) or + (not self.flist[0].is_empty() and self.invert)))) def set_logical_op(self, val): if val in GenericFilter.logical_functions: