From: Andrea Zagli Date: Mon, 18 Nov 2013 11:41:37 +0000 (+0100) Subject: Typo in GtkForm::get_sql. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=3b61827aeff3cbdf9d2c3c7d8e32dd79a465725c;p=libgtkform Typo in GtkForm::get_sql. --- diff --git a/libgtkform/form.c b/libgtkform/form.c index 9ed93f0..e6cf1ed 100644 --- a/libgtkform/form.c +++ b/libgtkform/form.c @@ -2093,9 +2093,9 @@ gchar g_string_erase (key_where, 0, 5); } - g_object_get (field, "field", &field_name, key_where->str); + g_object_get (field, "field", &field_name, NULL); - new_val = gdaex_get_new_id (priv->gdaex, priv->table, field_name, NULL); + new_val = gdaex_get_new_id (priv->gdaex, priv->table, field_name, key_where->str); gtk_form_widget_set_value_stringify (gtk_form_field_get_form_widget (field), g_strdup_printf ("%d", new_val));