variable = psppire_dict_get_variable (store->dict, var_num);
posn = var_get_case_index (variable);
- printf ("insert var_num=%d, posn=%d\n", var_num, posn);
psppire_data_store_insert_value (store, var_get_width (variable), posn);
#if AXIS_TRANSITION
PsppireDataStore *store = PSPPIRE_DATA_STORE (model);
union value v;
- int width;
const struct variable *pv = psppire_dict_get_variable (store->dict, col);
+ int width = var_get_width (pv);
const gint index = var_get_case_index (pv) ;
- width = var_is_numeric (pv) ? 0 : MAX_SHORT_STRING;
value_init (&v, width);
value_set_missing (&v, width);
psppire_data_store_set_value (store, row, index, &v);
else
value_set_missing (&value, width);
- printf("insert column width=%d\n", width);
datasheet_insert_column (ds->datasheet, &value, width, where);
return TRUE;