From 50911b7cf17e5dea5e919fa26b2debbf0006fd0c Mon Sep 17 00:00:00 2001 From: Hivernat Emmanuel Date: Sat, 22 Aug 2015 12:25:01 +1000 Subject: [PATCH] 8824 Fix Pedigreeview crash when selecting Compact view --- gramps/plugins/view/pedigreeview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/view/pedigreeview.py b/gramps/plugins/view/pedigreeview.py index ed814b991..f1045081e 100644 --- a/gramps/plugins/view/pedigreeview.py +++ b/gramps/plugins/view/pedigreeview.py @@ -981,7 +981,7 @@ class PedigreeView(NavigationView): rela = lst[2*i+1][1] line = LineWidget2(1, rela, self.tree_direction) - if lst[((i+1) // 2) - 1] and lst[((i+1) // 2) - 1][2]: + if lst[i] and lst[i][2]: # Required for popup menu line.add_events(Gdk.EventMask.BUTTON_PRESS_MASK) line.connect("button-press-event", @@ -1032,7 +1032,7 @@ class PedigreeView(NavigationView): pbw, mrela, 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",