From 0dd2b9d0fd27dc81041e35d1e409ef8ebcb18ad5 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Mon, 21 Jan 2019 20:31:22 -0600 Subject: [PATCH] Fix Relationship Graph; extra people when using filters & subgraphs (#769) subgraph option wasn't checking parents against filtered results Fixes #10947 --- gramps/plugins/graph/gvrelgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/graph/gvrelgraph.py b/gramps/plugins/graph/gvrelgraph.py index aa5f6749b..322916cd2 100644 --- a/gramps/plugins/graph/gvrelgraph.py +++ b/gramps/plugins/graph/gvrelgraph.py @@ -488,13 +488,13 @@ class RelGraphReport(Report): self.doc.start_subgraph(fam_id) f_handle = fam.get_father_handle() m_handle = fam.get_mother_handle() - if f_handle: + if f_handle in self.persons: father = self._db.get_person_from_handle(f_handle) self.doc.add_link(father.get_gramps_id(), fam_id, "", self.arrowheadstyle, self.arrowtailstyle) - if m_handle: + if m_handle in self.persons: mother = self._db.get_person_from_handle(m_handle) self.doc.add_link(mother.get_gramps_id(), fam_id, "",