- if ( var_num > 0 )
- {
- struct variable *variable =
- psppire_dict_get_variable (store->dict, var_num);
-
- g_assert (variable != NULL);
-
- posn = var_get_case_index (variable);
- }
- else
- {
- posn = 0;
- }
-
- psppire_case_file_insert_values (store->case_file, 1, posn);
-
-#if AXIS_TRANSITION
- g_sheet_column_columns_changed (G_SHEET_COLUMN (store),
- var_num, 1);
-#endif
-
- g_sheet_model_columns_inserted (G_SHEET_MODEL (store), var_num, 1);
-}
-
-
-static void
-dict_size_change_callback (GObject *obj,
- gint posn, gint adjustment, gpointer data)
-{
- PsppireDataStore *store = PSPPIRE_DATA_STORE (data);
-
- const struct variable *v = psppire_dict_get_variable (store->dict, posn);
-
- const gint new_val_width = value_cnt_from_width (var_get_width (v));
-
- if ( adjustment > 0 )
- psppire_case_file_insert_values (store->case_file, adjustment,
- new_val_width - adjustment +
- var_get_case_index(v));
+ variable = psppire_dict_get_variable (store->dict, var_num);
+ posn = var_get_case_index (variable);
+ psppire_data_store_insert_value (store, var_get_width (variable), posn);