Fixed bug where piecharts with many segments crashed.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 2 Apr 2009 00:19:09 +0000 (08:19 +0800)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 2 Apr 2009 00:19:09 +0000 (08:19 +0800)
commit23fe9f40872f54400ce10d87f349c8d317c21274
treeae05d54f653f1dee4c738189c2565b11cac2d391
parent92f9121c49de9f91d9d743b5dc854cf701713dc5
Fixed bug where piecharts with many segments crashed.

Make sure that we don't index beyond the bounds of the
data_colour array.
src/output/charts/barchart.c
src/output/charts/piechart.c
src/output/charts/plot-chart.c
src/output/charts/plot-chart.h
tests/automake.mk
tests/bugs/piechart.sh [new file with mode: 0755]