From 3b61827aeff3cbdf9d2c3c7d8e32dd79a465725c Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 18 Nov 2013 12:41:37 +0100 Subject: [PATCH] Typo in GtkForm::get_sql. --- libgtkform/form.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.49.0