4236: All notes and sources ALWAYS written to GEDCOM file even when no notes are suppose to be written

svn: r15978
This commit is contained in:
Doug Blank 2010-10-13 10:56:46 +00:00
parent 8f1bbb6811
commit d10cd40ae7

View File

@ -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: