X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fbox-whisker.c;h=3e501ccaeb7501da327eb145337290786b6ef7b9;hb=ddf2365f2c3b8924f37cb0c96b2093cceaa64cb9;hp=f9581be087c64a27b9dcc40003d21adab6ec7230;hpb=6e097c89af440da90b43ce90864394c4d0c843d5;p=pspp diff --git a/src/math/box-whisker.c b/src/math/box-whisker.c index f9581be087..3e501ccaeb 100644 --- a/src/math/box-whisker.c +++ b/src/math/box-whisker.c @@ -40,7 +40,7 @@ destroy (struct statistic *s) struct order_stats *os = &bw->parent; struct ll *ll; - for (ll = ll_head (&bw->outliers); ll != ll_null (&bw->outliers); ) + for (ll = ll_head (&bw->outliers); ll != ll_null (&bw->outliers);) { struct outlier *e = ll_data (ll, struct outlier, ll); @@ -63,7 +63,7 @@ acc (struct statistic *s, const struct ccase *cx, bool extreme; struct outlier *o; - if ( y > bw->hinges[2] + bw->step) /* Upper outlier */ + if (y > bw->hinges[2] + bw->step) /* Upper outlier */ { extreme = (y > bw->hinges[2] + 2 * bw->step) ; } @@ -94,8 +94,9 @@ acc (struct statistic *s, const struct ccase *cx, if (bw->id_var) { char *s = data_out (case_data_idx (cx, bw->id_idx), - var_get_encoding (bw->id_var), - var_get_print_format (bw->id_var)); + var_get_encoding (bw->id_var), + var_get_print_format (bw->id_var), + settings_get_fmt_settings ()); ds_put_cstr (&o->label, s); free (s);