X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-store.c;h=0466a97becda12095be792137cb9e9f4701d9842;hb=0fa141762183890ebd139ccd9264f08db9011539;hp=0cb8ef913b4c7515f47bf5c0715232728c3bbbf8;hpb=b30481255a2e378ad438545533b98098c5a1e124;p=pspp-builds.git diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index 0cb8ef91..0466a97b 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -569,20 +569,10 @@ psppire_data_store_set_string(GSheetModel *model, } #endif - { - const gint index = psppire_variable_get_fv(pv); - - struct data_in d_in; - d_in.s = text; - d_in.e = text + strlen(text); - d_in.v = 0; - d_in.f1 = d_in.f2 = 0; - d_in.format = * psppire_variable_get_write_spec(pv); - d_in.flags = 0; - - psppire_case_file_data_in(store->case_file, row, index, &d_in) ; - } - + psppire_case_file_data_in (store->case_file, row, + psppire_variable_get_fv (pv), ss_cstr (text), + psppire_variable_get_write_spec (pv)); + return TRUE; }