X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fnp-plot.c;h=a140230e06282ed306ccf86e823e6a2d698a020c;hb=e91782a2d25dec932c93b7a57bd03d836614ba43;hp=dfc74603003f342dacc7141ee347d472aa8a127b;hpb=50d8ca1f180c3ce67532eb186a8a5c372f2f08e9;p=pspp diff --git a/src/output/charts/np-plot.c b/src/output/charts/np-plot.c index dfc7460300..a140230e06 100644 --- a/src/output/charts/np-plot.c +++ b/src/output/charts/np-plot.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2004, 2008, 2009, 2011 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 @@ -16,14 +16,14 @@ #include -#include +#include "output/charts/np-plot.h" #include -#include -#include -#include -#include +#include "data/casereader.h" +#include "libpspp/cast.h" +#include "math/np.h" +#include "output/chart-item-provider.h" #include "gl/minmax.h" @@ -33,7 +33,7 @@ make_np_plot (const struct np *np, const struct casereader *reader, { struct np_plot_chart *npp; - if (np->n < 1.0) + if (np->n <= 1.0) return NULL; npp = xzalloc (sizeof *npp);