While modifying the renderer, I noticed in the draw() method the following code part. It seems to me that the different positions of the g2.fill() may be a bug, but I don't really understand graphics programming

Thanks for a great piece of software!
Ted
Code: Select all
if (yClose.doubleValue() > yOpen.doubleValue()) {
if (this.upPaint != null) {
g2.setPaint(this.upPaint);
g2.fill(body);
}
} else {
if (this.downPaint != null) {
g2.setPaint(this.downPaint);
}
g2.fill(body);
}