Reimplement Chart::paint() to fix printing issues
The implementation has been taken from AbstractArea::paintIntoRectArea()
BUG:405075 FIXED-IN:2.6.2