Fix crash when changing variable formats in data import dialog.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 23 Jul 2013 19:47:38 +0000 (21:47 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 23 Jul 2013 19:47:38 +0000 (21:47 +0200)
Recent changes altered the CHANGE_VARIABLE signal handler signature,
but this handler had not been updated.

Reported-by: dr soumalya ray <drsoumalya-ray@yahoo.co.in>
src/ui/gui/page-formats.c

index 5b06bcb3d4fac2ad1d1d9d1d23dddc637621efcc..9e9d2adb9e605982dd6572f2237aaf1634beccf7 100644 (file)
@@ -68,7 +68,10 @@ struct formats_page
 /* The "formats" page of the assistant. */
 
 static void on_variable_change (PsppireDict *dict, int idx,
+                               unsigned int what,
+                               const struct variable *oldvar,
                                 struct import_assistant *);
+
 static void clear_modified_vars (struct import_assistant *);
 
 /* Initializes IA's formats substructure. */
@@ -231,6 +234,7 @@ reset_formats_page (struct import_assistant *ia)
    dictionary. */
 static void
 on_variable_change (PsppireDict *dict, int dict_idx,
+                   unsigned int what, const struct variable *oldvar,
                     struct import_assistant *ia)
 {
   struct formats_page *p = ia->formats;