PsppireImportAssistant: Clear the dictionary before re-adding the variables
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 7 May 2017 10:59:01 +0000 (12:59 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 7 May 2017 10:59:01 +0000 (12:59 +0200)
src/ui/gui/psppire-import-assistant.c

index eba14a480a7e27e73ec5503ec45ffa4d5d38b49b..ca80ec869d30b1168e1ee6d32974c56d041dce9b 100644 (file)
@@ -1626,6 +1626,7 @@ choose_column_names (PsppireImportAssistant *ia)
     {
       int i;
       unsigned long int generated_name_count = 0;
+      dict_clear (ia->dict);
       for (i = 0; i < gtk_tree_model_get_n_columns (ia->delimiters_model) - 1; ++i)
        {
          const gchar *candidate_name =