X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-store.c;h=65a4391d224402e353648de7795607c57e03366b;hb=5bacd5c053e285ccfba287d2b28079f1d1c49cc9;hp=0466a97becda12095be792137cb9e9f4701d9842;hpb=0fa141762183890ebd139ccd9264f08db9011539;p=pspp diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index 0466a97bec..65a4391d22 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -442,10 +442,10 @@ psppire_data_store_insert_new_case(PsppireDataStore *ds, gint posn) for (v = 0 ; v < psppire_dict_get_var_cnt (ds->dict) ; ++v) { const struct PsppireVariable *pv = psppire_dict_get_variable(ds->dict, v); - if (ALPHA == psppire_variable_get_type(pv) ) + if (VAR_STRING == psppire_variable_get_type(pv) ) continue; - case_data_rw (&cc, psppire_variable_get_fv (pv))->f = SYSMIS; + case_data_rw_idx (&cc, psppire_variable_get_fv (pv))->f = SYSMIS; } result = psppire_case_file_insert_case (ds->case_file, &cc, posn); @@ -530,7 +530,7 @@ psppire_data_store_clear_datum (GSheetModel *model, const gint index = psppire_variable_get_fv(pv) ; - if ( psppire_variable_get_type(pv) == NUMERIC) + if ( psppire_variable_get_type(pv) == VAR_NUMERIC) v.f = SYSMIS; else memcpy(v.s, "", MAX_SHORT_STRING);