X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fcharts%2Fbox-whisker.c;h=33c445b09a61b0ef36714272bd221bfd2cd9f741;hb=refs%2Ftags%2Ffc11-i386-build30;hp=4878221d024e5e2a83710690b2bfa609b13aab54;hpb=2acfe799af1fd4504ee1278e0b8864ace451688a;p=pspp-builds.git diff --git a/src/output/charts/box-whisker.c b/src/output/charts/box-whisker.c index 4878221d..33c445b0 100644 --- a/src/output/charts/box-whisker.c +++ b/src/output/charts/box-whisker.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004, 2008 Free Software Foundation, Inc. + Copyright (C) 2004, 2008, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -63,6 +63,7 @@ boxplot_draw_boxplot (struct chart *ch, { double whisker[2]; double hinge[3]; + struct ll *ll; const struct ll_list *outliers; @@ -138,7 +139,7 @@ boxplot_draw_boxplot (struct chart *ch, box_centre, box_top); outliers = box_whisker_outliers (bw); - for (struct ll *ll = ll_head (outliers); + for (ll = ll_head (outliers); ll != ll_null (outliers); ll = ll_next (ll)) { const struct outlier *outlier = ll_data (ll, struct outlier, ll); @@ -146,7 +147,7 @@ boxplot_draw_boxplot (struct chart *ch, } /* Draw tick mark on x axis */ - draw_tick(ch, TICK_ABSCISSA, box_centre - ch->data_left, name); + draw_tick(ch, TICK_ABSCISSA, box_centre - ch->data_left, "%s", name); pl_restorestate_r(ch->lp); }