Fixed issue with paintDelta calculation.

Thanks Evgeni!