Make the combo boxes in the variable sheet work properly
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 4 Apr 2017 17:03:34 +0000 (19:03 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 4 Apr 2017 17:03:34 +0000 (19:03 +0200)
src/ui/gui/psppire-data-editor.c

index 8210a340d62cfbc72acbcf2400cb2792da5fd853..8fadbf54117ea6fd6ef64e8f8fe8f3da8dcd18c1 100644 (file)
@@ -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);