From: Ben Pfaff Date: Wed, 1 Jul 2009 23:42:44 +0000 (-0700) Subject: piechart: Fix spelling of "magnitude". X-Git-Tag: v0.7.3~14 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78d55cb38818fa96116f913b72ced33fb3e1c10c;p=pspp-builds.git piechart: Fix spelling of "magnitude". --- diff --git a/src/language/stats/frequencies.q b/src/language/stats/frequencies.q index e44e8e21..91ae6728 100644 --- a/src/language/stats/frequencies.q +++ b/src/language/stats/frequencies.q @@ -1515,7 +1515,7 @@ freq_tab_to_slice_array(const struct freq_tab *frq_tab, ds_init_empty (&slices[i].label); var_append_value_name (var, &frq->value, &slices[i].label); - slices[i].magnetude = frq->count; + slices[i].magnitude = frq->count; } return slices; diff --git a/src/output/charts/piechart.c b/src/output/charts/piechart.c index edb83ddb..5ff6123b 100644 --- a/src/output/charts/piechart.c +++ b/src/output/charts/piechart.c @@ -48,7 +48,7 @@ void piechart_plot(const char *title, const struct slice *slices, int n_slices) { int i; - double total_magnetude=0; + double total_magnitude=0; struct chart *ch = chart_create(); @@ -70,14 +70,14 @@ piechart_plot(const char *title, const struct slice *slices, int n_slices) chart_write_title(ch, title); for (i = 0 ; i < n_slices ; ++i ) - total_magnetude += slices[i].magnetude; + total_magnitude += slices[i].magnitude; for (i = 0 ; i < n_slices ; ++i ) { static double angle=0.0; const double segment_angle = - slices[i].magnetude / total_magnetude * 2 * M_PI ; + slices[i].magnitude / total_magnitude * 2 * M_PI ; const double label_x = centre_x - radius * sin(angle + segment_angle/2.0); diff --git a/src/output/charts/piechart.h b/src/output/charts/piechart.h index 96540401..288a44e6 100644 --- a/src/output/charts/piechart.h +++ b/src/output/charts/piechart.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 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 @@ -21,7 +21,7 @@ struct slice { struct string label; - double magnetude; + double magnitude; }; /* Draw a piechart */