Numeric cells which contain the system missing value are currently rendered
as a number of spaces, a dot and a number of spaces depending on the
current variable width and decimal places settings. When the cell is
edited, then this string is pretty confusing.
With the patch system missing values for numeric variables are rendered
as empty strings. Editing the cell is then straightforward and starts
with an empty cell.
static char *
unlabeled_value (PsppireDataStore *store, const struct variable *variable, const union value *val)
{
+ if (var_is_numeric (variable) &&
+ var_is_value_missing (variable, val, MV_SYSTEM))
+ return g_strdup ("");
+
const struct fmt_spec *fmt = var_get_print_format (variable);
return data_out (val, psppire_dict_encoding (store->dict), fmt);
}