diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobwidget.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index c6e3bb1ae6..8c8bf9bc77 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py | |||
@@ -1072,7 +1072,11 @@ class HobCellRendererToggle(gtk.CellRendererToggle): | |||
1072 | if (not self.ctrl) or (not widget): | 1072 | if (not self.ctrl) or (not widget): |
1073 | return | 1073 | return |
1074 | if self.ctrl.is_active(): | 1074 | if self.ctrl.is_active(): |
1075 | path = widget.get_path_at_pos(cell_area.x + cell_area.width/2, cell_area.y + cell_area.height/2)[0] | 1075 | path = widget.get_path_at_pos(cell_area.x + cell_area.width/2, cell_area.y + cell_area.height/2) |
1076 | # sometimes the parameters of cell_area will be a negative number,such as pull up down the scroll bar | ||
1077 | # it's over the tree container range, so the path will be bad | ||
1078 | if not path: return | ||
1079 | path = path[0] | ||
1076 | if path in self.ctrl.running_cell_areas: | 1080 | if path in self.ctrl.running_cell_areas: |
1077 | cr = window.cairo_create() | 1081 | cr = window.cairo_create() |
1078 | color = gtk.gdk.Color(HobColors.WHITE) | 1082 | color = gtk.gdk.Color(HobColors.WHITE) |