From 2d984ba480aef106455fb5001c767cfcf515ac63 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sun, 29 Jan 2006 22:50:39 +0000 Subject: [PATCH] =?UTF-8?q?Andreas=20K=C3=B6hler's=20patch=20to=20fix=20co?= =?UTF-8?q?mmodity=20editor=20warnings/crash.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13037 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 5 +++++ src/gnome-utils/gnc-tree-model-commodity.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ef8e10378c..15acf95943 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-29 David Hampton + + * gnc-tree-model-commodity.c: Andreas Köhler's patch to fix + commodity editor warnings/crash. + 2006-01-29 Joshua Sled * src/report/utility-reports/welcome-to-gnucash.scm: register diff --git a/src/gnome-utils/gnc-tree-model-commodity.c b/src/gnome-utils/gnc-tree-model-commodity.c index 082c574097..001eefdff1 100644 --- a/src/gnome-utils/gnc-tree-model-commodity.c +++ b/src/gnome-utils/gnc-tree-model-commodity.c @@ -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));