Initialize depth variable in tree view keynav before using it.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13850 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2006-04-25 08:33:08 +00:00
parent f02981a6f6
commit 594c36f098
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2006-04-25 Andreas Köhler <andi5.py@gmx.net>
* src/gnome-utils/gnc-tree-view.c: Initialize depth variable in
tree view keynav before using it.
2006-04-25 David Hampton <hampton@employees.org>
* src/scm/process.scm: Handle the failure to fork a child process

View File

@@ -2166,6 +2166,7 @@ gnc_tree_view_keynav(GncTreeView *view, GtkTreeViewColumn **col,
if (gtk_tree_view_row_expanded(tv, path)) {
gtk_tree_path_down(path);
} else {
depth = gtk_tree_path_get_depth(path);
gtk_tree_path_next(path);
if (!gnc_tree_view_path_is_valid(view, path) && depth > 1) {
gtk_tree_path_prev(path);