[Gnucash-changes] r13850 - gnucash/trunk - Initialize depth variable in tree view keynav before using it.

Andreas Köhler andi5 at cvs.gnucash.org
Tue Apr 25 04:33:10 EDT 2006


Author: andi5
Date: 2006-04-25 04:33:08 -0400 (Tue, 25 Apr 2006)
New Revision: 13850
Trac: http://svn.gnucash.org/trac/changeset/13850

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-tree-view.c
Log:
Initialize depth variable in tree view keynav before using it.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-04-25 05:13:33 UTC (rev 13849)
+++ gnucash/trunk/ChangeLog	2006-04-25 08:33:08 UTC (rev 13850)
@@ -1,3 +1,8 @@
+2006-04-25  Andreas Köhler  <andi5.py at 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 at employees.org>
 
 	* src/scm/process.scm: Handle the failure to fork a child process

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-04-25 05:13:33 UTC (rev 13849)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view.c	2006-04-25 08:33:08 UTC (rev 13850)
@@ -2166,6 +2166,7 @@
         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);



More information about the gnucash-changes mailing list