Merge commit 'origin/stable'
[pspp-builds.git] / src / output / charts / box-whisker.c
index 4878221d024e5e2a83710690b2bfa609b13aab54..33c445b09a61b0ef36714272bd221bfd2cd9f741 100644 (file)
@@ -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);
 }