Added the /BARCHART option to CROSSTABS
[pspp] / src / language / stats / chisquare.c
index 617bddba8f21ced7a5d25bda4d545065c5f8b7dd..e2ed8fef64808c003dc8bdf6073b1eaa11f2eb80 100644 (file)
@@ -331,7 +331,7 @@ chisquare_execute (const struct dataset *ds,
            {
              struct string str;
              double exp;
-             const union value *observed_value = &ff[i]->value;
+             const union value *observed_value = &ff[i]->values[0];
 
              ds_init_empty (&str);
              var_append_value_name (var, observed_value, &str);
@@ -407,7 +407,7 @@ chisquare_execute (const struct dataset *ds,
              struct string str;
              double exp;
 
-             const union value *observed_value = &ff[i]->value;
+             const union value *observed_value = &ff[i]->values[0];
 
              ds_init_empty (&str);
              var_append_value_name (ost->vars[v], observed_value, &str);