Fixed bug which crashed gui if it attempted to enter invalid variable names.
[pspp-builds.git] / src / ui / gui / psppire-var-store.c
index 9ce4f38f63245e5ae8a98de5e2614b3140e5798a..3b3011f0a10a4837c70daa0a408196957b4c4c0f 100644 (file)
@@ -394,8 +394,7 @@ psppire_var_store_set_string (GSheetModel *model,
   switch (col)
     {
     case COL_NAME:
-      psppire_dict_rename_var (var_store->dict, pv, text);
-      return TRUE;
+      return psppire_dict_rename_var (var_store->dict, pv, text);
       break;
     case COL_COLUMNS:
       if ( ! text) return FALSE;