Cite tokens when reporting invalid identifiers.
[pspp] / src / ui / gui / psppire-variable-sheet.c
index 859803f6122a10a445cdf6f74e20f27e6497b968..573e66e4cc8206ea0a2b5f8fb48dca9936537c7c 100644 (file)
@@ -325,7 +325,7 @@ change_var_property (PsppireVariableSheet *var_sheet, gint col, gint row, const
   PsppireDict *dict = NULL;
   g_object_get (var_sheet, "data-model", &dict, NULL);
 
-  int n_rows = psppire_dict_get_var_cnt (dict);
+  int n_rows = psppire_dict_get_n_vars (dict);
   if (row > n_rows)
     return;
 
@@ -342,7 +342,7 @@ change_var_property (PsppireVariableSheet *var_sheet, gint col, gint row, const
     case DICT_TVM_COL_NAME:
       {
        const char *name = g_value_get_string (value);
-       if (psppire_dict_check_name (dict, name, FALSE))
+       if (psppire_dict_check_name (dict, name))
          dict_rename_var (dict->dict, var, g_value_get_string (value));
       }
       break;