Marc Zwart 2018-03-15 10:47:31 +01:00
parent 0da4e10c49
commit 51b266a2de

View file

@ -68,6 +68,10 @@ public class ManaPieChart extends JComponent {
total += slices[i].value;
}
if (total == 0.0D) {
return; //there are no slices or no slices with a value > 0, stop here
}
double curValue = 0.0D;
int startAngle = 0;
int lastAngle = 0;