projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug where piecharts with many segments crashed.
[pspp-builds.git]
/
src
/
output
/
charts
/
plot-chart.c
diff --git
a/src/output/charts/plot-chart.c
b/src/output/charts/plot-chart.c
index 88aa58b06803a4c65a7f1f52a021acf116f111c9..3b4f1b377a12a624ceb929d00c617bb4bd581f30 100644
(file)
--- a/
src/output/charts/plot-chart.c
+++ b/
src/output/charts/plot-chart.c
@@
-38,17
+38,18
@@
#include "xalloc.h"
#include "xalloc.h"
-const char *const data_colour[] = {
- "brown",
- "red",
- "orange",
- "yellow",
- "green",
- "blue",
- "violet",
- "grey",
- "pink"
-};
+const char *const data_colour[N_CHART_COLOURS] =
+ {
+ "brown",
+ "red",
+ "orange",
+ "yellow",
+ "green",
+ "blue",
+ "violet",
+ "grey",
+ "pink"
+ };