diff --git a/ChangeLog b/ChangeLog index 751e633e15..ce9b055a41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-12-06 David Hampton + * src/gnome/dialog-price-edit-db.c: Fix the edit price to properly + check the number of selected prices. + * lib/goffice-0.0.4/goffice/gtk/go-combo-text.c: Comment out function that does nothing except generate a compiler warning. diff --git a/src/gnome/dialog-price-edit-db.c b/src/gnome/dialog-price-edit-db.c index e7cc61d72d..3efe3d79bf 100644 --- a/src/gnome/dialog-price-edit-db.c +++ b/src/gnome/dialog-price-edit-db.c @@ -124,8 +124,9 @@ gnc_prices_dialog_edit_clicked (GtkWidget *widget, gpointer data) LEAVE("no price selected"); return; } - if (g_list_next(!price_list)) { - LEAVE("soo many prices selected"); + if (g_list_next(price_list)) { + g_list_free(price_list); + LEAVE("too many prices selected"); return; }