Get rid of superfluous Makefile in src/output/charts.
[pspp-builds.git] / src / output / charts / box-whisker.c
index ea1b4624516e9be0304d871e3deed1cd903d8247..5fd9d295f749189aa20358712ba782bac0034b5a 100644 (file)
@@ -23,6 +23,7 @@
 #include <assert.h>
 #include <cairo/cairo.h>
 
+#include <libpspp/cast.h>
 #include <libpspp/misc.h>
 #include <math/chart-geometry.h>
 #include <math/box-whisker.h>
@@ -96,7 +97,7 @@ draw_case (cairo_t *cr, const struct chart_geometry *geom, double centreline,
                      20);
 
   cairo_move_to (cr, centreline + 10, y);
-  chart_label (cr, 'l', 'c', ds_cstr (&outlier->label));
+  chart_label (cr, 'l', 'c', geom->font_size, ds_cstr (&outlier->label));
 }
 
 static void
@@ -221,7 +222,7 @@ static void
 boxplot_chart_draw (const struct chart *chart, cairo_t *cr,
                     struct chart_geometry *geom)
 {
-  const struct boxplot *boxplot = (struct boxplot *) chart;
+  const struct boxplot *boxplot = UP_CAST (chart, struct boxplot, chart);
   double box_width;
   size_t i;
 
@@ -240,7 +241,7 @@ boxplot_chart_draw (const struct chart *chart, cairo_t *cr,
 static void
 boxplot_chart_destroy (struct chart *chart)
 {
-  struct boxplot *boxplot = (struct boxplot *) chart;
+  struct boxplot *boxplot = UP_CAST (chart, struct boxplot, chart);
   size_t i;
 
   free (boxplot->title);