From 19ed451d5175afc83d391c13eb58654c94310fa9 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 18 Jul 2009 12:34:30 +0200 Subject: [PATCH] The length of the string is now not always the same as the format width. Thanks to Ben Pfaff for pointing this out. --- src/ui/gui/psppire-data-editor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index a2ca1d88..38250f7e 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -1646,7 +1646,8 @@ enum { /* Perform data_out for case CC, variable V, appending to STRING */ static void -data_out_g_string (GString *string, const struct dictionary *dict, const struct variable *v, +data_out_g_string (GString *string, const struct dictionary *dict, + const struct variable *v, const struct ccase *cc) { const struct fmt_spec *fs = var_get_print_format (v); @@ -1654,7 +1655,7 @@ data_out_g_string (GString *string, const struct dictionary *dict, const struct char *s = data_out (val, dict_get_encoding (dict), fs); - g_string_append_len (string, s, fs->w); + g_string_append (string, s); g_free (s); } -- 2.30.2