Andreas Köhler's patch to fix commodity editor warnings/crash.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13037 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-01-29 22:50:39 +00:00
parent eb8f68139b
commit 2d984ba480
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2006-01-29 David Hampton <hampton@employees.org>
* gnc-tree-model-commodity.c: Andreas Köhler's patch to fix
commodity editor warnings/crash.
2006-01-29 Joshua Sled <jsled@asynchronous.org>
* src/report/utility-reports/welcome-to-gnucash.scm: register

View File

@@ -1052,7 +1052,7 @@ gnc_tree_model_commodity_path_changed (GncTreeModelCommodity *model,
GtkTreeIter iter;
debug_path(ENTER, path);
if (gtk_tree_path_up (path)) {
if (gtk_tree_path_up (path) && gtk_tree_path_get_depth (path) > 0) {
debug_path(DEBUG, path);
gtk_tree_model_get_iter (GTK_TREE_MODEL(model), &iter, path);
DEBUG("iter %s", iter_to_string(&iter));