From bebc632d22eea4919dec7c094af6b2444a1dff38 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 3 Jan 2012 04:58:20 +0000 Subject: [PATCH] 5268: Filters do not work on exporting XML gramps or generating NAVWEB svn: r18688 --- src/Filters/_GenericFilter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Filters/_GenericFilter.py b/src/Filters/_GenericFilter.py index f4437ecf5..0b839d73f 100644 --- a/src/Filters/_GenericFilter.py +++ b/src/Filters/_GenericFilter.py @@ -3,6 +3,7 @@ # # Copyright (C) 2002-2006 Donald N. Allingham # Copyright (C) 2011 Tim G L Lyons +# Copyright (C) 2012 Doug Blank # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -62,10 +63,9 @@ 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() and not self.invert) or - (not self.flist[0].is_empty() and self.invert)))) + return ((len(self.flist) == 0) or + (len(self.flist) == 1 and ((self.flist[0].is_empty() and + not self.invert)))) def set_logical_op(self, val): if val in GenericFilter.logical_functions: