7347: fix a bug 'on mouse over' event

This commit is contained in:
Hivernat Emmanuel 2015-06-12 16:36:49 +02:00 committed by Jérôme Rapinat
parent 7ea583bedd
commit b346dce2b3

View File

@ -981,7 +981,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",