Quick gradient fix for GradientBarPainter

Hi,

GradientBarPainter uses maxX instead of maxY for the first region of a top-down gradient, which gives the wrong result (most of the time, no gradient at all since the X range is much larger than the Y range). Using getMaxY() instead gives a correct gradient for the first region.

Regards,

Stephen