diff --git a/gramps/gen/proxy/living.py b/gramps/gen/proxy/living.py index 21db54396..4db8cf45c 100644 --- a/gramps/gen/proxy/living.py +++ b/gramps/gen/proxy/living.py @@ -116,10 +116,11 @@ class LivingProxyDb(ProxyDbBase): Protected version of iter_people """ for person in filter(None, self.db.iter_people()): - if not(self.__is_living(person) and - self.mode == self.MODE_EXCLUDE_ALL): - - yield self.__restrict_person(person) + if self.__is_living(person): + if self.mode == self.MODE_EXCLUDE_ALL: + continue + else: + yield self.__restrict_person(person) else: yield person