From fc45abf6fe3b0a535ff096885f8b2dfce91be31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 7 Jul 2008 16:42:46 +0200 Subject: [PATCH] Improve test on_get_iter for issue174 --- tryton/gui/window/view_tree/view_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_tree/view_tree.py b/tryton/gui/window/view_tree/view_tree.py index 4121083dbe..3281fac8fe 100644 --- a/tryton/gui/window/view_tree/view_tree.py +++ b/tryton/gui/window/view_tree/view_tree.py @@ -196,7 +196,7 @@ class ViewTreeModel(gtk.GenericTreeModel, gtk.TreeSortable): node = [] tree = self.tree for i in path: - if not tree: + if not tree or i >= len(tree): return None node.append((i, tree)) tree = tree[i][2]