sack works
[pspp] / src / language / commands / jonckheere-terpstra.c
index b0385fa577bc5fba89fdac23734c6fcddb5666f3..f8f4fbbecbfe44755e3c85dc4cf9480fad19d94c 100644 (file)
@@ -194,7 +194,7 @@ void variance_calculation (struct casereader *ir, const struct variable *var,
   struct ccase *c;
   const struct variable *wv = dict_get_weight (dict);
   const int w_idx = wv ?
-    var_get_case_index (wv) :
+    var_get_dict_index (wv) :
     caseproto_get_n_widths (casereader_get_proto (r)) ;
 
   r = sort_execute_1var (r, var);