Encapsulated the static data of procedure.[ch] into a single object, to be
[pspp-builds.git] / src / math / levene.c
index 920440103b4d5b33bcb6721746b1048591f61693..f30d51dfee8d307a38992b7ade14217deb0da0de 100644 (file)
@@ -191,7 +191,7 @@ levene_calc (const struct ccase *c, void *_l)
   struct levene_info *l = (struct levene_info *) _l;
   const union value *gv = case_data (c, l->v_indep->fv);
   struct group_statistics key;
-  double weight = dict_get_case_weight (default_dict, c, &warn); 
+  double weight = dict_get_case_weight (dataset_dict (current_dataset), c, &warn); 
 
   /* Skip the entire case if /MISSING=LISTWISE is set */
   if ( l->missing == LEV_LISTWISE ) 
@@ -295,7 +295,7 @@ levene2_calc (const struct ccase *c, void *_l)
 
   struct levene_info *l = (struct levene_info *) _l;
 
-  double weight = dict_get_case_weight (default_dict, c, &warn); 
+  double weight = dict_get_case_weight (dataset_dict (current_dataset), c, &warn); 
 
   const union value *gv = case_data (c, l->v_indep->fv);
   struct group_statistics key;