X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fbarchart.c;h=88a1d741ddf9199f08404d49096de62dada0a373;hb=ed0dda01c61c6b086e47f64302b75da5df97db87;hp=64f3f2c391ad01443fc8e6ab890b86ba081e468e;hpb=f5c108becd49d78f4898cab11352291f5689d24e;p=pspp diff --git a/src/output/charts/barchart.c b/src/output/charts/barchart.c index 64f3f2c391..88a1d741dd 100644 --- a/src/output/charts/barchart.c +++ b/src/output/charts/barchart.c @@ -1,20 +1,18 @@ -/* PSPP - computes sample statistics. +/* PSPP - a program for statistical analysis. Copyright (C) 2004 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 the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #include @@ -150,7 +148,7 @@ draw_barchart(struct chart *ch, const char *title, { pl_savestate_r(ch->lp); - pl_fillcolorname_r(ch->lp,data_colour[sc]); + pl_fillcolorname_r(ch->lp,data_colour[sc % N_CHART_COLOURS]); switch ( opt ) {