Fixed bug where piecharts with many segments crashed.
[pspp-builds.git] / src / output / charts / plot-chart.c
index 88aa58b06803a4c65a7f1f52a021acf116f111c9..3b4f1b377a12a624ceb929d00c617bb4bd581f30 100644 (file)
 
 #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"
+  };