From: John Darrington Date: Tue, 4 Apr 2017 17:03:34 +0000 (+0200) Subject: Make the combo boxes in the variable sheet work properly X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15962d268e0ede4dcc7c0332667091700cc35bea;p=pspp Make the combo boxes in the variable sheet work properly --- diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index 8210a340d6..8fadbf5411 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -268,13 +268,13 @@ change_var_property (PsppireDict *dict, gint col, gint row, GValue *value) var_set_display_width (var, g_value_get_int (value)); break; case DICT_TVM_COL_MEASURE: - var_set_measure (var, g_value_get_enum (value)); + var_set_measure (var, g_value_get_int (value)); break; case DICT_TVM_COL_ALIGNMENT: - var_set_alignment (var, g_value_get_enum (value)); + var_set_alignment (var, g_value_get_int (value)); break; case DICT_TVM_COL_ROLE: - var_set_role (var, g_value_get_enum (value)); + var_set_role (var, g_value_get_int (value)); break; default: g_message ("Changing col %d of var sheet not yet supported", col);