From 00032f0cadd479d30150be04abb1e45fd146d48a Mon Sep 17 00:00:00 2001 From: Hivernat Emmanuel Date: Fri, 12 Jun 2015 16:37:45 +0200 Subject: [PATCH] 7347: fix a bug 'on mouse over' event --- gramps/plugins/view/pedigreeview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/view/pedigreeview.py b/gramps/plugins/view/pedigreeview.py index 6fedbb582..b6c86fde7 100644 --- a/gramps/plugins/view/pedigreeview.py +++ b/gramps/plugins/view/pedigreeview.py @@ -987,7 +987,7 @@ class PedigreeView(NavigationView): rela = lst[2*i+1][1] line = LineWidget2(1, rela, self.tree_direction) - if lst[i] and lst[i][2]: + if lst[((i+1) // 2) - 1] and lst[((i+1) // 2) - 1][2]: # Required for popup menu line.add_events(Gdk.EventMask.BUTTON_PRESS_MASK) line.connect("button-press-event",