X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fhelper.c;h=d670002a467fc741bacafd4480f63782e97ef7b6;hb=a5097a183f00ab2d2dc538ba7094a4696e2fea04;hp=31633de9fff3ae8ded4105b44cab4d3d682f41cd;hpb=729b96a6bd9342c45e6f65a113fd87c70da85b0a;p=pspp-builds.git diff --git a/src/ui/gui/helper.c b/src/ui/gui/helper.c index 31633de9..d670002a 100644 --- a/src/ui/gui/helper.c +++ b/src/ui/gui/helper.c @@ -49,11 +49,11 @@ /* Formats a value according to FORMAT The returned string must be freed when no longer required */ gchar * -value_to_text (union value v, const struct dictionary *dict, struct fmt_spec format) +value_to_text (union value v, const PsppireDict *dict, struct fmt_spec format) { gchar *s = 0; - s = data_out (&v, dict_get_encoding (dict), &format); + s = data_out (&v, dict_get_encoding (dict->dict), &format); g_strchug (s); return s; @@ -63,6 +63,7 @@ value_to_text (union value v, const struct dictionary *dict, struct fmt_spec for gboolean text_to_value (const gchar *text, union value *v, + const PsppireDict *dict, struct fmt_spec format) { bool ok; @@ -86,6 +87,7 @@ text_to_value (const gchar *text, union value *v, msg_disable (); ok = data_in (ss_cstr (text), LEGACY_NATIVE, format.type, 0, 0, 0, + dict->dict, v, fmt_var_width (&format)); msg_enable ();