]> saetta.ns0.it Git - libgtkform/commitdiff
Typo in GtkForm::get_sql.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Mon, 18 Nov 2013 11:41:37 +0000 (12:41 +0100)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Mon, 18 Nov 2013 11:41:37 +0000 (12:41 +0100)
libgtkform/form.c

index 9ed93f06cfbaf1a59deab95f7f354ddf360636f8..e6cf1ed07f1f1d2c00ce07ef62c2eaa5bcd61c20 100644 (file)
@@ -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));